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

Include a large string value in example_data.js leafs()

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • Fully Compatible

      I find that the leafs() function helps me quickly create diverse test data to cover lots of BSON corner cases. I highly recommend using it.

      In SBE, small strings are held in-line in slots, while large strings create a value on the heap, and store a pointer to that heap memory in the slot. Although leafs() is supposed to be BSON types that don't contain other values, it may be valuable to include a large string in this list.

            Assignee:
            adrian.davila@mongodb.com Adrian Davila (Inactive)
            Reporter:
            matt.boros@mongodb.com Matt Boros
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: