I have a strange issue with a MongoDB query today. It works fast in the compass app. But is slow when executed in my GraphQL datafetcher. And by slow I mean 0.5s vs > 80s. The query explain look the same for both. And adding a limit does not change the issue.
Comments
How to respond
Write your comment on your on page and link it to this page with the following link:
https://vmac.ch/posts/2025-05-19-i-have-a-strange-issue-1747662887/
Then insert the permalink to your post into the form below and submit it.
Alternatively you can reach me by email to: comment@vmac.ch