Open Env without TLS

This commit is contained in:
Kerollmops 2025-03-10 15:41:11 +01:00
parent 48a27f669e
commit 34df44a002
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F
9 changed files with 18 additions and 9 deletions

View file

@ -35,7 +35,8 @@ fn setup_dir(path: impl AsRef<Path>) {
fn setup_index() -> Index {
let path = "benches.mmdb";
setup_dir(path);
let mut options = EnvOpenOptions::new();
let options = EnvOpenOptions::new();
let mut options = options.read_txn_without_tls();
options.map_size(100 * 1024 * 1024 * 1024); // 100 GB
options.max_readers(100);
Index::new(options, path, true).unwrap()