Re: [sqlite] EXTERNAL:Re: How to optimize a multi-condition query

2010-10-15 Thread Pavel Ivanov
There are several conditions that should be met for walking the index to be faster than walking the table. 1) The most important one: index b-tree structure should be organized in such way that one can walk directly from one leaf to another thus traversing all leaves without touching interior page

Re: [sqlite] EXTERNAL:Re: How to optimize a multi-condition query

2010-10-15 Thread Black, Michael (IS)
I see the difference now... So I take it that it's faster just to walk the table once rather than walk the index? Couldn't you just walk the index once? Smaller data space (quite likely), better caching? It might be a wash or worse with the potential of having to retreive other fields from