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

Distinguish between the simple collator and the absence of a collator

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
      None
    • Query Optimization

      Currently we use a null CollatorInterface* to represent two different states: 1) the "simple" collator, which the user can specify with {collation: {locale: "simple"}}, and 2) the absence of a collator.

      If the user does not specify a collation field with a command, the collation is unknown until we read the collection metadata, since such operations inherit the default collation set on the collection. The current implementation is awkward since we have to take extra steps to distinguish {locale: "simple"} from this "unknown" case.

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            david.storch@mongodb.com David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: