Квиз по 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.

Средний 10 вопроса ~6 минуты Проходной балл: 80% SQLite

Выберите режим

Вы играете как гость: войдите, чтобы сохранить XP и серию.

Пример вопроса

Вопрос 1 из 10

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

Показать ответ

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.

Что проверяет этот квиз

  • 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

Частые вопросы

Нужен ли аккаунт?

Нет. Играть может любой. Войдите, чтобы сохранять XP, серию, значки и историю.

Можно пройти ещё раз?

Да. Лучший результат сохраняется, а вопросы и ответы каждый раз перемешиваются.