Under the Hood
Loading visualizer…
DNSresolving host
TCPconnecting
TLShandshake
HTTPrequesting
Initializing Sorting Algorithms...
Sorting
Trees
Graphs
Preparing interactive visualizations...
Under the Hood
Loading visualizer…
SQL → parser → planner → cost-based optimizer → executor — and why the planner picks index scan over full scan
SELECT name, cityFROM usersWHERE city = 'Paris'ORDER BY nameLIMIT 20;
We will follow one SQL query from text to result. SQL is declarative: you describe WHAT you want — the 20 alphabetically-first users in Paris — not HOW to get it. The database is free to choose any execution strategy that produces the correct answer. Turning this "what" into an efficient "how" is the whole job of the query engine.
Query lifecycle
Active Recall
A query has an index on the filtered column, yet the optimizer uses a full table scan. Why might that be correct?