Is there a way to increase maxClauseCount

We have a query that needs to filter by a long list of ids.

I get the error: “Query contains too many nested clauses; maxClauseCount is set to 1024”

Can I increase the maxClauseCount for a local atlas deployment?

Hi @Ruud_van_Buul,
I am not an expert on this topic, but I found the following answer:

i hope it will be useful!

Best Regards

Yes I know. But can I overwrite the default somehow? The M10+ clusters don’t have this limitation. So my tests are breaking but it works in clusters.

Hi @Ruud_van_Buul,
I have not found in the documentation a parameter that can be set and thus can overwrite the default one, so I suppose not.

Regards

Can we make feature requests for local atlas somewhere?

Hi @Ruud_van_Buul,
I think here:
https://feedback.mongodb.com/

Best Regards

Thanks for your help!

1 Like