Skip to content

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