Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-5590

Shard keys do not support fields with "." in their name

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 8.1.0, 9.0.0, 8.0.4, 7.5.3
    • Affects Version/s: 8.1.0, 9.0.0, 8.0.4, 7.5.3
    • Component/s: None
    • Labels:
      None

      Following on from MONGOID-5582, the solution in that ticket failed to account for the edge case where shard keys have "." characters in the name. (See https://www.mongodb.com/docs/manual/core/dot-dollar-considerations)

      I believe it should be possible to fix the recursion in the shard key parsing so that it will only recurse if the current segment matches the name of an embedded document.

       

      Update documentation to better explain this scenario and provide best practices

            Assignee:
            jamis.buck@mongodb.com Jamis Buck
            Reporter:
            jamis.buck@mongodb.com Jamis Buck
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: