MongoDB – Using Index to get nested IDs is slow
I have a MongoDB collection with 8k+ documents, around 40GB. Inside it, the data follows this format: { _id: ..., _session: { _id: ... }, data: {...} } I need to get all the _session._id for my application. The following…