# Full-Text Search

> Why is a query like WHERE title LIKE '%keyword%' slow on a large table, and what would you use instead?

Canonical: https://www.internhack.in/learn/interview/database-design/db-full-text-search-vs-like
Last updated: 2026-11-28

Difficulty: Intermediate

## Question

Why is a query like WHERE title LIKE '%keyword%' slow on a large table, and what would you use instead?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

LIKE Wildcard, B-tree Index, Full-Text Search, pg_trgm, GIN Index

Previous: [Read Replicas vs. Caching](https://www.internhack.in/learn/interview/database-design/db-read-replicas-vs-caching) · Next: [Checkpointing](https://www.internhack.in/learn/interview/database-design/db-checkpointing) · [All of Database Design](https://www.internhack.in/learn/interview/database-design)

## More Database Design questions

- [Star vs. Snowflake](https://www.internhack.in/learn/interview/database-design/db-star-vs-snowflake-schema)
- [Polymorphic Associations](https://www.internhack.in/learn/interview/database-design/db-polymorphic-associations)
- [Schema Migrations](https://www.internhack.in/learn/interview/database-design/db-database-migration-best-practices)
- [JSONB in SQL](https://www.internhack.in/learn/interview/database-design/db-json-b-data-type)
- [UPSERT](https://www.internhack.in/learn/interview/database-design/db-upsert-operation)
- [FK Performance](https://www.internhack.in/learn/interview/database-design/db-foreign-key-performance)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Database Design](https://www.internhack.in/learn/interview/database-design)
