Re: [sqlite] 3.5.8 alot slower than 3.5.7

2008-04-25 Thread Daniel Önnerby
Thank you!
This helped. didn't find this before.

Best regards
Daniel

Eric Minbiole wrote:
>> This works great but when I upgraded from 3.5.7 to 3.5.8 the speed of 
>> this select went from 0.2s to around 1 minute. And 3.5.8 is stealing 
>> ALOT more memory.
>> 
>
> D. Richard Hipp had a very helpful work-around for this issue, by simply 
> rearranging the terms of your join's ON clause.  Take a look at this 
> thread for details:
>
> http://www.mail-archive.com/sqlite-users%40sqlite.org/msg33267.html
>
> ~Eric
> ___
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>   
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] 3.5.8 alot slower than 3.5.7

2008-04-25 Thread Eric Minbiole
> This works great but when I upgraded from 3.5.7 to 3.5.8 the speed of 
> this select went from 0.2s to around 1 minute. And 3.5.8 is stealing 
> ALOT more memory.

D. Richard Hipp had a very helpful work-around for this issue, by simply 
rearranging the terms of your join's ON clause.  Take a look at this 
thread for details:

http://www.mail-archive.com/sqlite-users%40sqlite.org/msg33267.html

~Eric
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


[sqlite] 3.5.8 alot slower than 3.5.7

2008-04-25 Thread Daniel Önnerby
Hi all!
I have a db looking like this: http://onnerby.se/~daniel/mc2db.png
and in my tracks table I have a column named sort_order1. When my 
application is running I try to optimize the database by doing a pretty 
massive SELECT to set this sort_order looking like this:
SELECT t.id FROM tracks t LEFT OUTER JOIN genres g ON 
t.visual_genre_id=g.id LEFT OUTER JOIN albums al ON t.album_id=al.id 
LEFT OUTER JOIN artists ar ON t.visual_artist_id=ar.id LEFT OUTER JOIN 
folders f ON t.folder_id=f.id ORDER BY 
g.sort_order,ar.sort_order,al.sort_order,t.track,f.fullpath,t.filename

This works great but when I upgraded from 3.5.7 to 3.5.8 the speed of 
this select went from 0.2s to around 1 minute. And 3.5.8 is stealing 
ALOT more memory.

I tried this both in my own application and using the sqlite.exe (both 
for 3.5.7 and 3.5.8) and they show the same results.

I tried to locate anything regarding this both on the mailinglist and 
searching tickets.
Is this a known issue or is it a bug?

Best regards
Daniel

___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users