Open
Description
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