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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 馃幐 add an index to optimize the distinct query #338

Merged
merged 1 commit into from
Jun 1, 2022

Conversation

severo
Copy link
Collaborator

@severo severo commented Jun 1, 2022

Weirdly, the index wasn't necessary locally, and was in production (not
sure why). Maybe related to https://jira.mongodb.org/browse/SERVER-19507
and
https://stackoverflow.com/questions/36006208/mongodb-distinct-with-query-doesnt-use-indexes.

@severo severo merged commit 7cb4f82 into main Jun 1, 2022
@severo severo deleted the fix-valid-query branch June 1, 2022 16:22
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.

None yet

1 participant