MDB_NOTLS top-level constant
int
const MDB_NOTLS
Disables thread-local storage.
When used:
- Reduces per-thread memory usage
- Beneficial for many threads
- May improve performance
Common usage scenarios:
- Multi-threaded applications
- Server environments
- Resource-constrained systems
Example:
await db.init(path,
flags: LMDBFlagSet()..add(MDB_NOTLS));
Considerations:
- May affect thread safety
- Requires careful transaction handling
- Consider when many threads access same environment
Implementation
const MDB_NOTLS = bindings.MDB_NOTLS;