Skip to content

[Feature Request] Support or ignore hint #90

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

Open
AlekSi opened this issue Mar 3, 2025 · 7 comments
Open

[Feature Request] Support or ignore hint #90

AlekSi opened this issue Mar 3, 2025 · 7 comments
Assignees

Comments

@AlekSi
Copy link
Contributor

AlekSi commented Mar 3, 2025

Purpose of the feature.

Some MongoDB commands (aggregate, find, count, findAndModify, update, delete) accept a hint parameter that could be used to suggest an index to use. Currently, DocumentDB does not support it. FerretDB has users reporting compatibility problems due to this.

Alternatively, that parameter could just be ignored. It would be nice to check that specified index still exists (and return an error if it does not), but not do anything beyond that.

Describe the solution you'd like

hint parameter is implemented or ignored.

Describe alternatives you've considered

Decode all queries in FerretDB and remove that parameter before sending the request to DocumentDB. But that would make things slower.

Additional context

@AlekSi AlekSi added the enhancement New feature or request label Mar 3, 2025
@lichoil
Copy link

lichoil commented Mar 4, 2025

yes, i think we can ignore this parameter.

@c-nv-s
Copy link

c-nv-s commented Mar 15, 2025

just to get a rough idea on timeframe... how low is this request on the priority list/road map?

@lichoil lichoil added api approved and removed enhancement New feature or request labels Mar 26, 2025
@duanpei-ms
Copy link
Member

I'm working on it, expect that publish the PR before this weekend.

@c-nv-s
Copy link

c-nv-s commented Apr 10, 2025

@wwey-payton any update?

@c-nv-s
Copy link

c-nv-s commented Apr 15, 2025

@lichoil I just checked the github profile for wwey-payton and I'm not going to hold my breath for a solution from them

@duanpei-ms
Copy link
Member

PR in review

@c-nv-s
Copy link

c-nv-s commented May 1, 2025

any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants