examerioLogin
← Backend PythonQuestion 43 of 49

Why might PostgreSQL choose a sequential scan instead of using an index?

📘 Explanation

PostgreSQL may prefer a sequential scan when the table is small, when the condition matches a large share of rows (low selectivity), or when statistics are outdated and mislead the planner. The other options list unrelated or incorrect conditions like write load, missing primary keys, or index fragmentation that aren't the real reasons behind this choice.

📖 Learn: Indexes & query performance

Related questions

← PreviousNo login needed