Skip to content
Quantoros

How does the query planner decide between index scan and seq scan?

SQLLevel: AdvancedIndexes & Performance

How does the query planner decide between index scan and seq scan?

Hints
  • How is lookup performed without the structure and what changes with it?
  • Check selectivity, key order and the cost of data updates.

Answer

This answer is part of mentoring

Advanced questions come with a full breakdown and a mock interview with a working quant researcher. The first call is free.

Source and licence: SQL Interview Questions — Arda Kocadoru · MIT

Related questions