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

Calculate BSON size of a document without serialization

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      With serialization it can be done by calling doc.toBson().objsize(). However, serialization is somehwhat slow (ca. 1ms for a 16MB document), as it requires memory allocation.

      Attachments

        Activity

          People

            romans.kasperovics@mongodb.com Romans Kasperovics
            romans.kasperovics@mongodb.com Romans Kasperovics
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: