I\'m having a performance problem in SQLite with a SELECT COUNT(*) on a large tables.
As I didn\'t yet receive a usable answer and I did some further testing, I edited m
Do not count the stars, count the records! Or in other language, never issue
SELECT COUNT(*) FROM tablename;
use
SELECT COUNT(ROWID) FROM tablename;
Call EXPLAIN QUERY PLAN for both to see the difference. Make sure you have an index in place containing all columns mentioned in the WHERE clause.