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

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: 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
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              Jamis Buck
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: