Skip to content

api: Remove LIMIT from queries using GIN index #2333

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

Merged
merged 1 commit into from
Apr 10, 2025

Conversation

victorges
Copy link
Member

We have some queries taking a long time on the DB because for some reason the planner refuses to use the GIN index when there's a LIMIT. This is an easy fix to unblock those for now since:

  • on both cases the probability of having a lot of results is low
  • on both cases we also want to process every item that wouldn't be on the first "page" anyway

We have some queries taking a long time on the DB because
for some reason the planner refuses to use the GIN index
when there's a LIMIT. This is an easy fix to unblock those
for now since:
- on both cases the probability of having a lot of results is low
- on both cases we also want to process every item that wouldn't be on the first "page" anyway
@victorges victorges requested a review from a team as a code owner April 8, 2025 19:19
Copy link

vercel bot commented Apr 8, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
livepeer-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 8, 2025 7:24pm

@victorges victorges merged commit d7c2aef into master Apr 10, 2025
6 of 8 checks passed
@victorges victorges deleted the vg/fix/gin-index-queries branch April 10, 2025 17:24
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.

2 participants