Skip to content

Conversation

@Tofandel
Copy link

@Tofandel Tofandel commented Jan 25, 2022

This query runs on every request and the first % is not needed thus it's a slow query because the index cannot be used in that case. This makes the query run about 20 times faster on a big table

Applying this patch on my website improved the TTFB by 500ms which is huge

This query runs on every request and the first % is not needed thus it's a slow query because the index cannot be used in that case. This makes the query run about 20 times faster on a big table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant