https://bugs.openldap.org/show_bug.cgi?id=10542
Issue ID: 10542 Summary: On Windows, allow using previous write behavior Product: LMDB Version: 1.0.0 Hardware: All OS: Windows Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: liblmdb Assignee: bugs@openldap.org Reporter: hyc@openldap.org Target Milestone: ---
ITS#9017 changed write behavior in Windows to use WRITE_THROUGH writes and eliminate use of FlushFileBuffers(). Supposedly this yields faster write performance because flushes are very slow. However, other users report this approach is actually much slower than LMDB 0.9.
Add a compile-time flag to revert to the original write behavior.
https://bugs.openldap.org/show_bug.cgi?id=10542
--- Comment #1 from Howard Chu hyc@openldap.org --- In git 62e2a60e71cd58e6fdd83a31af3d3c7fe103483d
Compile with -DMDB_USE_WRITE_THROUGH=0 to get the old buffered write behavior.
https://bugs.openldap.org/show_bug.cgi?id=10542
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@openldap.org |hyc@openldap.org Target Milestone|--- |1.0.1 Status|UNCONFIRMED |RESOLVED Resolution|--- |TEST
https://bugs.openldap.org/show_bug.cgi?id=10542
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- mdb.master3:
• 62e2a60e by Howard Chu at 2026-07-17T17:00:54+01:00 ITS#10542 lmdb: Add compile time flag MDB_USE_WRITE_THROUGH for Windows
mdb.RE/1.0:
• 1681bc79 by Howard Chu at 2026-07-17T17:05:22+01:00 ITS#10542 lmdb: Add compile time flag MDB_USE_WRITE_THROUGH for Windows
https://bugs.openldap.org/show_bug.cgi?id=10542
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs_review |
https://bugs.openldap.org/show_bug.cgi?id=10542
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|TEST |FIXED Status|RESOLVED |VERIFIED