The external sorted uses memUsageForSorter to estimate when to spill to disk.
KeyString::Value should report its memory usage as the total capacity of the underlying SharedBuffer rather than the number of bytes used out of the entire buffer length.
This will probably require adding a "capacity()" function to ConstSharedBuffer to access into its underlying SharedBuffer.
- is related to
-
SERVER-45099 Serialize index builds on secondary members in 4.2
- Closed