Configurable sample size - Data Modeling tab

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 1.49.2
    • Affects Version/s: None
    • Component/s: None
    • None
    • Needed
    • Hide

      This page will need to be updated: https://www.mongodb.com/docs/compass/data-modeling/generate-diagram/

      By default, we use a sample of 100 documents per collection - with this change, the number will be configurable.

      This will apply also for https://www.mongodb.com/docs/compass/data-modeling/modify-collections/#add-a-new-collection-1. We don't go into much detail there at the moment, but it might be worth noting that we'll need need to fetch samples for existing collections for inferring relationships (optional feature)

      Show
      This page will need to be updated: https://www.mongodb.com/docs/compass/data-modeling/generate-diagram/ By default, we use a sample of 100 documents per collection - with this change, the number will be configurable. This will apply also for https://www.mongodb.com/docs/compass/data-modeling/modify-collections/#add-a-new-collection-1 . We don't go into much detail there at the moment, but it might be worth noting that we'll need need to fetch samples for existing collections for inferring relationships (optional feature)
    • Developer Tools

      Above the relationship inference checkbox, add another setting: 

      Maximum documents sampled per collection <number_input>, default 100

      Description - Compass generates an entity-relationship diagram based on a small sample of documents from each collection you select in your database. Larger samples can improve accuracy but may take longer to generate, while smaller samples are faster but may miss infrequent fields or relationships.

            Assignee:
            Ivan Medina
            Reporter:
            Paula Stachova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: