[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] Re: PyQt application freezing on long operations
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2007-01-22 22:11:33
Message-ID: 20070122221133.GA6831 () morpheus ! apaku ! dnsalias ! org
[Download RAW message or body]

On 22.01.07 21:25:20, Carlos Eduardo wrote:
> Hans-Peter Jansen <hpj <at> urpla.net> writes:
> 
> > 
> > 
> > You're way to sparse with description of your environment/approaches to give 
> > you helpful answers. 
> > 
> > One nice thing of Qt3 QDataTables is, you don't need to care about the 
> > number of rows, at least as long as the database[server] is fast enough to 
> > deliver the first bunch of records (500?). Qt manages the "fetch when used" 
> > quite effective behind the scenes. I'm using it on tables with 60000 
> > records without noticable delays - as long as I don't try to iterate 
> > through the result set myself. 
> > 
> > KR,
> >   Pete
> 
> I´m using Python 2.5, Qt4.2.2 and latest PyQt snapshot... i made the application
> DB access using sqlite3 and cx_Oracle modules, for each of them I created a
> class that has the same functionaliti for all DB´s (get tables, make queries,
> get indexes...) .. like a wrapper for underlying drivers.

Why? Qt and PyQt already include a wrapper around different databases.
Yes Oracle isn't available as default, but you could've written your own
database plugin for that instead of re-inventing the wheel for 2
databases. What if you want to add another DB, like MySQL, Postgres
or...?

Andreas

-- 
You fill a much-needed gap.

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic