On 5/8/2014 12:16 PM, Woody Wu wrote:
What I was wondering is that why sqlite couldn't find out earlier that b=8 c=1 denotes an 
empty set? If I run something like "select * from table where b=8 and c=1", it 
could return very quickly.

Are you sure? An index on (a, b, c) wouldn't help with such a query at all; it would require a full table scan. Do you have another index for this table, on (b) or (c) or (b, c) or (c, b)?
--
Igor Tandetnik

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

Reply via email to