Advanced Database & SQL #indexing #B-tree #partial-index #covering-index

Indexing Strategy Language

5 exercises — practise the English vocabulary for indexing strategy discussions: B-tree limitations, partial indexes, the leftmost prefix rule, covering indexes, and arguing about the trade-offs of excessive indexing.

0 / 5 completed
1 / 5

A DBA says: "B-tree indexes support equality and range queries on sortable types." A new column description TEXT is proposed for full-text search. Which query type would NOT benefit from a standard B-tree index on description?

-- Query A: WHERE description = 'exact match'
-- Query B: WHERE description LIKE 'prefix%'
-- Query C: WHERE description LIKE '%substring%'
-- Query D: WHERE description > 'alpha' AND description < 'beta'