sql - SQLite: COUNT slow on big tables - Stack Overflow Waylon Walker Author Apr 2, 2024 1 min read !https://stackoverflow.com/questions/8988915/sqlite-count-slow-on-big-tables database sql sqlite thought Copy this post URL Rich Markdown Text View Markdown View Text curl .ansi External Link stackoverflow.com Another interesting option for slow count queries in sqlite. If you haven’t DELETEd any records, doing: SELECT MAX(ROWID) FROM "table" LIMIT 1; Share this post Twitter Bluesky LinkedIn WhatsApp Facebook Telegram Pinterest Reddit Hacker News Email Copy link