Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-14995

[SERVER] Compound 2dsphere indexes can generate a massive number of index keys per document

      Downstream Change Summary

      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.

            Assignee:
            dave.cuthbert@mongodb.com Dave Cuthbert (Inactive)
            Reporter:
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              2 years, 10 weeks, 2 days ago