mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 05:14:04 +00:00
634 B
634 B
| title | tweet_id | thread_slug | author_username | images | created_at | slug | |
|---|---|---|---|---|---|---|---|
| Use PostgreSQL's trigram indexes to make WHERE LIKE queries faster | 1487081932202463236 | weekly-thread-2022-04 | tobias_petry |
|
2022-01-28T15:15:35+00:00 | use-postgresqls-trigram-indexes-to-make-where-like-queries-faster |
⚡️ Database Tip
Every database performance guide is repeating the false statement stating WHERE LIKE '%search%' queries can't use an index. That is just not true! Most probably your database can't, but PostgreSQL implements trigram indexes which will make this really fast!