[PyKDE] Re: PyQt application freezing on long operations

Andreas Pakulat apaku at gmx.de
Mon Jan 22 22:11:33 GMT 2007


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.




More information about the PyQt mailing list