Limit FLE2 range padding batch inserts to 100k at a time

XMLWordPrintableJSON

    • Server Security
    • Fully Compatible
    • ALL
    • v8.0
    • Security 2024-06-24, Security 2024-07-08
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      FLE2 compaction for range fields calculate the number of padding documents to be inserted, and creates that may ESC padding documents. The resulting vector of documents is then passed to FLEQueryInterface::insertDocuments() all at once, which then creates a batch insert command containing all of the input documents.  If the number of padding documents is very large, this might either cause the resulting command BSONObject to exceed the 16MB limit, or exceed the 100,000 document limit for batched inserts.

              Assignee:
              Erwin Pe
              Reporter:
              Gabriel Marks
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: