SQL performance vocabulary

  • Seq Scan — full table scan; no index; slow on large tables
  • Index Scan / Bitmap Heap Scan — uses an index; efficient for selective filters
  • N+1 problem — 1 query for list + N queries for related data; fix with eager loading
  • Rows Removed by Filter in EXPLAIN ANALYZE — high = missing index
  • Functional indexCREATE INDEX ON tbl(LOWER(col)) — required when WHERE uses a function on a column

Question 0 of 5

A PostgreSQL EXPLAIN output shows: Seq Scan on orders (cost=0.00..4520.00 rows=200000 width=50). What does "Seq Scan" mean for performance?