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

[Insights] Add signal for bloated documents in Document tab

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.39.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • 5
    • Iteration Dreadnoughtus
    • Not Needed

      We'll use $bsonSize projection to get the document size and map it to a document card in the crud document list:

      • We will only do this if there is no custom projection provided by the user
      • We will add {doc: "$$ROOT", size: {$bsonSize: "$$ROOT"}} projection to the find call
      • When receiving the document, map doc to the HadronDocument and store the bson size value as a symbol on the hadron doc
      • The value can then be used to render the insight in the document list

            Assignee:
            sergey.petushkov@mongodb.com Sergey Petushkov
            Reporter:
            sergey.petushkov@mongodb.com Sergey Petushkov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: