Comment out map_size

This commit is contained in:
Jonathan de Jong 2021-07-30 21:53:01 +02:00 committed by GitHub
parent df8d3c95de
commit a04057ed4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,7 @@ impl From<heed::Error> for HeedError {
pub fn new_db<P: AsRef<Path>>(path: P) -> Result<heed::Env, HeedError> {
let mut env_builder = heed::EnvOpenOptions::new();
env_builder.map_size(1024 * 1024 * 1024); // 1 Terabyte
// env_builder.map_size(1024 * 1024 * 1024); // 1 Terabyte
env_builder.max_readers(126);
env_builder.max_dbs(128);