Re: [sqlite] bad index selection?

2009-03-09 Thread Derek Scherger
On Mon, Mar 9, 2009 at 12:08 AM, Igor Tandetnik wrote: > > It can't. "hash" column is not part of the index. > Right... I should have seen that. > > Would re-ordering our unique index to be (name, id, value, ...) > > rather than (name, value, id, ...) allow a query with

Re: [sqlite] bad index selection?

2009-03-08 Thread Derek Scherger
On Sun, Mar 8, 2009 at 9:46 PM, Igor Tandetnik wrote: > When all columns in the SELECT come from the index, SQLite can get all > their values directly from the index and avoid reading actual table. So > it saves an index-to-table lookup. > Thanks, that helps. > Note also