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

WhereContains and friends for PostgresSQL are suboptimal #540

Closed
mindcrash opened this issue Nov 16, 2021 · 2 comments
Closed

WhereContains and friends for PostgresSQL are suboptimal #540

mindcrash opened this issue Nov 16, 2021 · 2 comments

Comments

@mindcrash
Copy link

Currently the following SQL is generated

LOWER(column) LIKE '%value%'

However, this is causing enormous performance issues in PostgreSQL on larger number of rows, even when a GIN or GIST index is applied.

A more performant way to generate this condition would be:

column ILIKE '%value%'
@ahmad-moussawi
Copy link
Contributor

Could you push a PR for it?

@ahmad-moussawi
Copy link
Contributor

PR merged, thanks for reporting
#544

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

No branches or pull requests

2 participants