Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve query performance #3698

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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