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

perf(user-retention): correct sql to make query plan use index #143

Merged
merged 3 commits into from
Jun 25, 2024

Conversation

gary02
Copy link
Contributor

@gary02 gary02 commented Jun 24, 2024

No description provided.

… use index in query plan

score index in `article_hottest_materialized` view is defined as `"article_hottest_materialized_score_index" btree (score DESC NULLS LAST)`, thus `ORDER BY score desc` will not use index
@gary02 gary02 linked an issue Jun 24, 2024 that may be closed by this pull request
@gary02 gary02 merged commit f3e6d70 into main Jun 25, 2024
3 checks passed
@gitwoz gitwoz deleted the perf/user-retention branch August 29, 2024 04:15
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.

Fix user-retention slow SQLs
2 participants