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
Collscan on Browsing a Collection #1518
Comments
Are you using the master version or 1.0.2 ? |
I'm using latest docker image: https://hub.docker.com/_/mongo-express Its tagged as 1.0.2-20 |
try to build and use your own mongo-express image from master official docker image is out-of-date |
Master branch does not change the behavior. I remember this was working late 2022 early 2023 or so. Thought is was update releated when I updated from mongo 5 to 6. |
I've the problem that when I open a large collection (~10.000.000 Obj, 22kb Avg, 100GB).
I takes ages to load and I can see a COLLSCAN of _id in the logs.
The extracted query of mongo express is an aggregate on:
Replacing the match with for ex sort uses the _id index and then its fast.
Can anyone explain why the Index is not used for browsing a collection and why the index is not used for _id?
The text was updated successfully, but these errors were encountered: