-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 10.10, 2021.0
-
Fix Version/s: 10.10-HF54, 2021.11
-
Component/s: Core MongoDB
-
Upgrade notes:
-
Team:PLATFORM
-
Sprint:nxplatform #47
-
Story Points:5
When the countUpTo parameter is set -1 we are asking to count the exact number of matches.
This is a performance problem when matching lots of results even if the main query is limited to a page of 40 docs, as a result, the count query is going to raise a socket timeout after 1min.
A possible solution is to always set a count limit so countUpTo=-1 is translated to countUpTo=10000.