Indexing and query tuning
164 practice items · needed by 5 roles
Easy 41Medium 67Hard 56
Practice questions
- Purpose of a database indexeasy
- Composite index column ordermedium
- Index ignored for lower(email)medium
- Benefit of INCLUDE in an indexmedium
- Index for the few pending rowshard
- Inserts slow down with UUID keyshard
- Adding an index to a live big tablehard
- Composite index column ordermedium
- When a B-tree index helpseasy
- Finding slow MySQL querieseasy
- Index on a yes/no columneasy
- How InnoDB stores table rowseasy
- What an InnoDB secondary index points toeasy
- LIKE with a leading %easy
- What a hash index supportseasy
- Cost of extra indexes on insertseasy
- EXPLAIN versus EXPLAIN ANALYZEeasy
- type = ALL in MySQL EXPLAINeasy
- Index for a date rangeeasy
- Indexes created automaticallyeasy
- Index not used on a tiny tableeasy
- Duplicate-looking indexeseasy
- Index Cond versus Filtereasy
- What ANALYZE doeseasy
- COLLSCAN in a MongoDB planeasy
- One composite or two single indexeseasy
- What Seq Scan meanseasy
- Fast MAX on an indexed columneasy
- Writes for one inserteasy
- Indexing the join columneasy
- ORDER BY random()easy
- Order of fields in a MongoDB indexeasy
- A unique index used for searcheasy
- Spotting indexes no one useseasy
- Big table read by full scanseasy
- Composite index column ordermedium
- Reading an EXPLAIN ANALYZE planmedium
- Covering indexmedium
- Slow deep paginationmedium
- Which query to tune firstmedium
- Adding an index on a live tablemedium
- Sort Method: external mergemedium
- Bad plan right after a bulk loadmedium
- Deleting a customer takes secondsmedium
- Indexing only pending rowsmedium
- Searching inside textmedium
- Fast JSONB filtersmedium
- Counting a huge table quicklymedium
- Equality and range in one indexmedium
- Reading loops in a planmedium
- shared hit versus readmedium
- Why a Bitmap Heap Scanmedium
- Feed page per usermedium
- Gap in a composite indexmedium
- Phone number compared to a numbermedium
- LIKE prefix ignores the indexmedium
- Index for a huge append-only logmedium
- "Using filesort" in MySQL EXPLAINmedium
- Finding indexes nobody usesmedium
- OR across two columnsmedium
- ORDER BY with mixed directionsmedium
- random_page_cost on SSDmedium
- Same query, different plansmedium
- Checking if any row existsmedium
- The N+1 query patternmedium
- Many rows removed by filtermedium
- Testing an index drop safelymedium
- ON CONFLICT needs a unique indexmedium
- Estimating rows for an equality filtermedium
- Hash join with many batchesmedium
- Capturing plans of slow production queriesmedium
- Rows repeat across pagesmedium
- Stopping overlapping room bookingsmedium
- Hard-coding FORCE INDEXmedium
- Spotting a missing index from statsmedium
- MongoDB covered querymedium
- Rebuilding a bloated index onlinemedium
- Parallel workers in a planmedium
- Deleting a customer is slowmedium
- Index for a huge log tablemedium
- Speeding up CREATE INDEXmedium
- Foreign keys and indexes in InnoDBmedium
- UUID keys that index wellmedium
- Deep pages load slowlymedium
- Partition pruninghard
- Index ignored because of a functionhard
- Prepared statement slows down laterhard
- Estimates wrong for city and zip codehard
- Index-only scan still reads the tablehard
- Unique email on a partitioned tablehard
- Deleting old data every monthhard
- Random UUID keys slow down insertshard
- LIMIT 1 takes minuteshard
- Optional filters in one queryhard
- Index on a frequently updated columnhard
- Failed concurrent index buildhard
- B-tree levels for 2 crore rowshard
- CTE stops using an indexhard
- Index row size exceeds maximumhard
- Partitioned table with bad estimateshard
- NULLS LAST and the indexhard
- IN list plus ORDER BYhard
- Join ignores the indexhard
- Hot right edge of an indexhard
- Physical order and index costhard
- Estimates wrong for a skewed columnhard
- Refreshing a dashboard view without blockinghard
- Fast DISTINCT on a low-cardinality columnhard
- JIT makes a query slowerhard
- Planning time with 5,000 partitionshard
- MySQL prefix index trade-offhard
- Choosing a clustered keyhard
- Testing an index before building ithard
- High cache hit ratio, slow queryhard
- Wrong results after an OS upgradehard
- Inserts slow down with UUID keyshard
- Out of shared memory with partitionshard
- MySQL ignores an index on phonehard
- Query scans every partitionhard
- Creating a partition takes ageshard
- Attaching a loaded partition quicklyhard
- Duplicate emails differing in casehard
- Index-only scans slow on an insert-only tablehard
- Partitioning an events tableeasy
- Folders named dt=2026-10-01easy
- Reducing a topic's partitionseasy
- repartition vs coalescemedium
- Stopping full scans of a big tablemedium
- Where a keyed record landsmedium
- Records sent with no keymedium
- Partitions for a throughput targetmedium
- An extra topic appearsmedium
- One partition far busier than othersmedium
- Key for order lifecycle eventsmedium
- Iceberg hidden partitioninghard
- Which day does an event belong tohard
- A MERGE that scans 5 years of datahard
- Cost of salting a hot keyhard
- Removing a page from Googleeasy
- What IndexNow iseasy
- What noindex doeseasy
- A noindex line in robots.txteasy
- What robots 'none' meanseasy
- Counting pages with site:easy
- Keeping staging out of Googleeasy
- Submitted but not indexedeasy
- Keeping PDFs out of the indexeasy
- 'Alternate page with proper canonical tag'easy
- Soft 404 errorsmedium
- Crawled but not indexedmedium
- 'Discovered – currently not indexed'medium
- Large image previewsmedium
- Live test or indexed version?medium
- Pages that should expiremedium
- Noindex plus canonicalhard
- JavaScript removing noindexhard
- Site search pages in Googlehard
- Blocked page still in resultshard
- How much of the site is indexedhard
- Staging site found in Googlehard
- Using the Indexing APIhard
- Pages vanish after a CDN changehard
- Long-term noindex, followhard
- Header and meta disagreehard