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

add support for index hinting #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add support for index hinting #41

wants to merge 1 commit into from

Conversation

sethjeffery
Copy link

Adds the hint method to plucky queries.

It's useful because:

  • Hinting can speed up queries particularly in the (fortunately uncommon) case of when the internal query optimizer is picking the wrong index for a query. I've noted a few circumstances where a query was crippling our service because the planner wasn't being smart enough, and needed hinting.
  • Hint is a well-documented command for MongoDB, it's neither deprecated nor hidden. It's even expected by Plucky, just not realised as a proper method yet.

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.

1 participant