Skip to content

Conversation

eabz
Copy link

@eabz eabz commented Oct 11, 2025

This PR introduces a flag to enable to users to initialize the database with SafeNoSync mode.

Fixes: #18565

Introduces:

  • Added a new element sync_mode to the DatabaseArguments and DatabaseArgs.
  • Added a TypedParser to make sure only Durable and SafeNoSync options are used.
  • Passes the variable to DatabaseArguments::new function.
  • Changed all the tests where DatabaseArguments::new is used to use the SafeNoSync mode.
  • Hardcodes the usage in stage/dump to Durable.
  • Argument defaults to Durable

Can you point me if the documentation update is necessary?

@eabz eabz changed the title feat: allow using SafeNoSync for MDBX database feat: allow using SafeNoSync for MDBX Oct 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

allow using SafeNoSync for mdbx to increase write performance

2 participants