https://bugs.openldap.org/show_bug.cgi?id=9806
--- Comment #3 from Howard Chu hyc@openldap.org --- (In reply to casey from comment #2)
I set `nkeys` to 48 and rebuilt the database, and that seems to have worked. My records vary in size quite a bit.
OK. The value of 32 was chosen as close to optimal on x86/ARM systems using 4KB pages. MacOS on ARM uses 16KB pages so this value would certainly be too small when your records are of non-uniform size. I guess we can no longer leave it as a compile-time constant.