View definition


Defined in


WriteFlag specifies the flag for write-related methods like WriteTo(). Tx opens the database file with the specified flag to copy the data.

By default, the flag is unset, which works well for mostly in-memory workloads. For databases that are much larger than available RAM, set the flag to syscall.O_DIRECT to avoid trashing the page cache.

WriteFlag is referenced in 1 repository