I'm experiencing some weird behavior with SELECT statements in sqlite. There is one table with 3 Million records. E.g. SELECT * FROM table1 WHERE cond1;
reduces the output to 10000 records and finishes instantly. Same with SELECT * FROM table1 WHERE cond1 ORDER BY col1;
and SELECT * FROM table1 WHERE cond1 AND cond2
BUT: SELECT * FROM table1 WHERE cond1 AND cond2 ORDER BY col1;
seems to take forever. The CPU is working for about 2 seconds and after that there is only I/O. CPU does nothing, memory is free.What am I doing wrong? Thx for help!