Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-58789

Make GeometryContainer Copyable

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • None
    • None
    • Fully Compatible

    Description

      The proposed solution for SERVER-58359 involves serializing into BSON in order to call matchesSingleElement() from isSubsetOf. This is less efficient because it involves converting to and from BSON per query.

      To fix this, we need to make the GeometryContainer copyable so we can pull out a helper function from matchesSingleElement that will project the index's geometry into the CRS of the query.

      GeometryContainer is currently not copyable as it contains unique_ptrs and even classes that use new/delete. One potential solution would involve using clonable_ptrs instead of unique_ptrs inside GeometryContainer.

      Attachments

        Activity

          People

            dan.larkin-york@mongodb.com Dan Larkin-York
            maddie.zechar@mongodb.com Maddie Zechar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: