memoryBytes property

int get memoryBytes

Bytes of document payload plus keys currently held in memory.

The threshold budget is payload + key bytes, not the memtable's array capacity: capacity is preallocated and would make an empty engine look full.

Implementation

int get memoryBytes => _arena.bytesUsed + _memtable.keyBytes;