Quiz di SQL: Query Performance

This SQL quiz covers the performance questions that come up in backend interviews. You will read query plans, fix N+1 queries and slow pagination, and spot conditions that stop an index from being used.

Medio 10 domande ~6 minuti Superato con il 80% SQLite

Scegli una modalità

Stai giocando come ospite: accedi per salvare XP e serie.

Domanda di esempio

Domanda 1 di 10

What does EXPLAIN (or EXPLAIN QUERY PLAN in SQLite) show you?

Mostra la risposta

A. How the database plans to run the query: which indexes, scans and join order it uses The plan tells you whether a table is scanned in full or searched through an index, and in what order joins happen. In PostgreSQL EXPLAIN ANALYZE also runs the query and shows real timings, so be careful with it on UPDATE or DELETE.

Cosa copre questo quiz

  • Reading plans with EXPLAIN
  • N+1 queries and SELECT *
  • Keyset pagination instead of large OFFSET
  • Index-friendly conditions and type mismatches
  • Batching writes and keeping statistics fresh

Domande frequenti

Serve un account?

No. Chiunque può giocare. Accedi per salvare XP, serie, badge e cronologia.

Posso rifarlo?

Sì. Il tuo miglior punteggio resta salvato, e domande e risposte vengono mescolate ogni volta.