Skip to main content

What it flags

perf db --engine sqlite reports a simple filtered SELECT when SQLite’s query plan identifies an unindexed scan of an unaliased ordinary table with more than 1,000 rows. The command checks at most 1,001 rows per table, and the query plan does not measure how many rows the SELECT would read.

How to review

Consider whether the filter could use an index. Some scans are deliberate and faster than an index lookup. Compare the query plans before and after any index change. Unknown plan details, aliases that do not resolve to tables, and virtual tables are outside this rule’s scope. Pass --ignore db-sqlite-large-scan to omit the rule.