Quiz de 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.

Médio 10 perguntas ~6 minutos Aprovação com 80% SQLite

Escolha um modo

Jogando como visitante: entre para guardar seu XP e sua sequência.

Pergunta de exemplo

Pergunta 1 de 10

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

Mostrar a resposta

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.

O que este quiz cobre

  • 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

Perguntas frequentes

Preciso de uma conta?

Não. Qualquer pessoa pode jogar. Entre para guardar seu XP, sequência, badges e histórico.

Posso refazer?

Pode. Sua melhor nota fica salva, e as perguntas e respostas são embaralhadas a cada vez.