mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-23 21:20:24 +01:00
fix: Flush the database after each WriteBatch injected
This commit is contained in:
parent
383a49b44f
commit
aae301878c
@ -267,6 +267,7 @@ impl DatabaseIndex {
|
||||
let batch = update.build()?;
|
||||
self.db.write(batch)?;
|
||||
self.db.compact_range(None, None);
|
||||
self.db.flush(true)?;
|
||||
|
||||
let snapshot = Snapshot::new(self.db.clone());
|
||||
let view = Arc::new(DatabaseView::new(snapshot)?);
|
||||
|
Loading…
x
Reference in New Issue
Block a user