-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Use of GIN index on YugabyteDB has worse performance than that of PostgreSQL #13554
Comments
To recreate: -- table
-- function
--GIN index --query
--output PG w LIMIT 1000
--output YB w LIMIT 1000
|
This is currently a common issue with ybgin pg_trgm particularly because Running with
The filter key is We can test how to modify the query so that a more selective filter is pushed down to the gin index: explain (verbose, analyse)
SELECT * FROM account WHERE
(account_fun(data) ILIKE '%ajc%') limit 1000; This gives
with filter 6384227 corresponding to ajc, a lot more selective. This query is incomplete since it allows texts like "fooajcfoo", so we need to add the whole filter:
Please try this and see the results. I don't have the dataset to test myself. |
Jira Link: DB-3134
The text was updated successfully, but these errors were encountered: