Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2721

Add ability to cap the size of JSON generated by JsonWriter

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.7.0
    • None
    • JSON
    • None

    Description

      It's useful to cap the length of JSON text when generating log statements that contain BSON documents. While one can generate the full JSON text and then take a substring, it's more efficient to stop writing as soon as the max size is reached, saving both memory and CPU.

      Attachments

        Activity

          People

            jeff.yemin@mongodb.com Jeffrey Yemin
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: