mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Use the AlwaysFreePages flag when opening an index
This commit is contained in:
parent
007fec21fc
commit
91c5d0c042
8 changed files with 11 additions and 9 deletions
|
@ -3,6 +3,7 @@ use std::collections::{HashMap, HashSet};
|
|||
use std::path::Path;
|
||||
|
||||
use chrono::{DateTime, Utc};
|
||||
use heed::flags::Flags;
|
||||
use heed::types::*;
|
||||
use heed::{Database, PolyDatabase, RoTxn, RwTxn};
|
||||
use roaring::RoaringBitmap;
|
||||
|
@ -106,6 +107,7 @@ impl Index {
|
|||
use db_name::*;
|
||||
|
||||
options.max_dbs(14);
|
||||
unsafe { options.flag(Flags::MdbAlwaysFreePages) };
|
||||
|
||||
let env = options.open(path)?;
|
||||
let main = env.create_poly_database(Some(MAIN))?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue