Running the attached client as follows:
ben@zzyzx:~/projects/mongo-utils/build$ ./in_query localhost:27249 100000 Total query time in miliseconds: 389 Doc count: 100000 ben@zzyzx:~/projects/mongo-utils/build$ ./in_query localhost:27261 10000 Total query time in miliseconds: 2103 ben@zzyzx:~/projects/mongo-utils/build$ ./in_query localhost:27261 100000 Total query time in miliseconds: 380121 Doc count: 100000
The last execution never returns a result, and the client is blocked in the call to DBClientCursor::more(). Note that the server logs the slow query at ~230ms on my machine, but the process continues to consume 100% cpu for 380 seconds.
- is related to
-
SERVER-1211 don't use simplifiedQuery() to negate earlier index ranges in new matcher
- Closed
- related to
-
SERVER-13139 Performance regression with smaller $in queries
- Closed