-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Labels:None
We may want to update documentation to reflect that we now limit the number of compound-2dsphere index keys that can be generated by a single document. If a document would generate more keys, the index build, insertion, or update will fail.
Description of Linked Ticket
When generating keys for 2dsphere indexes we calculate the cartesian products of all keys.
If documents contain locations with a large number of location coordinates compounded with an array of a large number of elements the resulting cartesian product can be massive in size.
When generating all these keys they are inserted into a single std::vector that needs to hold the cartesian product number of elements which can fail as the number is simply too large.
- documents
-
SERVER-61184 Compound 2dsphere indexes can generate a massive number of index keys per document
- Closed