Setzer Sebastian (ext) wrote:
Hi,
it seems that Queries with ORDER BY (and a LIMIT-Clause to keep the result
small) are quite slow if the ORDER BY is on an INTEGER PRIMARY KEY - column.
If the ORDER BY is on a normal column for which I made an index, its quite
fast.

It doesn't help do create an index on the primary key (doesn't make sense
since its already there, does it?).

Hav you got any explanations? Is this an expected behaviour or is it just a
bug?

The workaround is, of course, not to declare columns as INTEGER PRIMARY KEY
if you want do ORDER BY them.


This should have been addressed by check-in 2141. http://www.sqlite.org/cvstrac/chngview?cn=2141


-- D. Richard Hipp -- [EMAIL PROTECTED] -- 704.948.4565



Reply via email to