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

[Insights] Add signal for bloated documents in Document tab

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.39.0
    • None
    • None
    • None
    • 5
    • Not Needed
    • Iteration Dreadnoughtus

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: