update index updated at on index writes

This commit is contained in:
mpostma
2021-03-11 18:42:21 +01:00
parent 80d0f9c49d
commit 615fe095e1
7 changed files with 14 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
use anyhow::anyhow;
use chrono::Utc;
use fst::IntoStreamer;
use heed::types::ByteSlice;
use roaring::RoaringBitmap;
@@ -52,6 +53,7 @@ impl<'t, 'u, 'i> DeleteDocuments<'t, 'u, 'i> {
}
pub fn execute(self) -> anyhow::Result<u64> {
self.index.set_updated_at(self.wtxn, &Utc::now())?;
// We retrieve the current documents ids that are in the database.
let mut documents_ids = self.index.documents_ids(self.wtxn)?;