Re: [PyQt] Extracting QSqlQuery results in PyQt4

2008-10-10 Thread Aaron Digulla
mir amicitas schrieb: > With sqlite3 or apsw things are much more tolerable, though if any one has > ideas on how to make the extraction even faster I would love to here them. > What I am doing for now is to use: > > results = [row for row in self.cursor] Try: results = list(self.curso

Re: [PyQt] Extracting QSqlQuery results in PyQt4

2008-10-09 Thread Mark Summerfield
On 2008-10-08, mir amicitas wrote: > I am trying to use SQLite in a PyQt4 application. I am running into a > problem where it is taking a really long time to get the data out of > the QSqlQuery object after a query is completed. Here is a code > snippet with the relevant parts: > >

Re: [PyQt] Extracting QSqlQuery results in PyQt4

2008-10-08 Thread mir amicitas
I took your suggestion and tried out sqlite3 and also apsw. Using either of these modules the unpacking time is reduced to 1-2 seconds. Furthermore just cycling through the results takes 1-1.5 seconds, meaning that adding the results to a list is much quicker than using QSqlQuery ( less than 1 se

Re: [PyQt] Extracting QSqlQuery results in PyQt4

2008-10-08 Thread Aaron Digulla
mir amicitas schrieb: > I am trying to use SQLite in a PyQt4 application. I am running into a > problem where it is taking a really long time to get the data out of > the QSqlQuery object after a query is completed. Here is a code > snippet with the relevant parts: > >

[PyQt] Extracting QSqlQuery results in PyQt4

2008-10-08 Thread mir amicitas
I am trying to use SQLite in a PyQt4 application. I am running into a problem where it is taking a really long time to get the data out of the QSqlQuery object after a query is completed. Here is a code snippet with the relevant parts: ##