Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-4397

Schema analysis should recognize dictionaries

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: Schema
    • None

      In a sub-document, the keys may be common across most documents in the collection, or they may contain a set of random values. For example, using hostnames as the keys in the "hosts" sub-document.

      {
        ...
        "hosts": {
          "server1a": { ... }
          "server2a": { ... }
          "server3a": { ... }
        }
      } 
       {
         ...
         "hosts": {
           "server1b": { ... }
           "server2b": { ... }
           "server3b": { ... }
        }
      } 

      The schema analysis should recognize the above situation to avoid creating thousands of sub-fields in the schema.

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            daniel.coupal@mongodb.com Daniel Coupal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: