Full-Text Search

Difficulty: Intermediate

Question

Why is 'LIKE %keyword%' slow?

Answer

Leading wildcards prevent the database from using standard B-Tree indexes, forcing a full table scan. Full-Text Search (FTS) indexes are built specifically for these queries.

Concepts covered

Search, Performance