Mongodb Nested Queries Not Using Indexes #18025
Labels
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
kind/bug
A reported bug.
team/client
Issue for team Client.
topic: include
topic: indexes
topic: mongodb
topic: performance/queries
topic: performance
Milestone
Bug description
In my app, querying orders and their subtitle works takes around 22 secs (33908 orders, 25534 work). I reproduced my issue with a small script and schema file.
Also index usage count is not increasing in second query.
I'm currently using a local single node mongoldb replica set for reproducing, also tried in atlas replica set instance.
How to reproduce
Expected behavior
Including subtitleWork must use index of orderId.
Prisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: