https://bugs.openldap.org/show_bug.cgi?id=9388
--- Comment #1 from tina@tina.pm --- I can confirm this issue. I have recently noticed that some of my named databases were reporting ridiculously low sizes.
For example, according to this, each entry takes about 0.9 byte, but the keys are all 21 bytes in length, and the average size of the values is around 17 bytes.
Status of xxxx Tree depth: 4 Branch pages: 269 Leaf pages: 24773 Overflow pages: 0 Entries: 1102749228
This one is not so bad, reports just over 8 bytes per entry. But in fact, both the key and the value for each entry are 8 bytes each:
Status of zzzz Tree depth: 3 Branch pages: 34 Leaf pages: 7392 Overflow pages: 0 Entries: 3623319