3 ms·
Also for those curious here's the C++ query planner for Mongo: https://github.com/mongodb/mongo/blob/master/src/mongo/db/query/query_planner.cpp#L624 https://gi
by winrid 5y ago
Also for those curious here's the C++ query planner for Mongo: https://github.com/mongodb/mongo/blob/master/src/mongo/db/query/query_planner.cpp#L624 https://github.com/mongodb/mongo/blob/master/src/mongo/db/qu...
Checking whether the key pattern matches an index:
https://github.com/mongodb/mongo/blob/master/src/mongo/db/query/planner_ixselect.cpp#L355 https://github.com/mongodb/mongo/blob/master/src/mongo/db/qu...
I wish Mongo could use intersecting indexes for queries and sorting...