mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
perf: limit reindex to when exact_attributes changes
This commit is contained in:
parent
57c9f03e51
commit
d19c8672bb
2 changed files with 18 additions and 10 deletions
|
@ -1145,9 +1145,8 @@ impl Index {
|
|||
}
|
||||
|
||||
/// Clears the exact attributes from the store.
|
||||
pub(crate) fn delete_exact_attributes(&self, txn: &mut RwTxn) -> Result<()> {
|
||||
self.main.delete::<_, Str>(txn, main_key::EXACT_ATTRIBUTES)?;
|
||||
Ok(())
|
||||
pub(crate) fn delete_exact_attributes(&self, txn: &mut RwTxn) -> Result<bool> {
|
||||
Ok(self.main.delete::<_, Str>(txn, main_key::EXACT_ATTRIBUTES)?)
|
||||
}
|
||||
|
||||
pub fn max_values_per_facet(&self, txn: &RoTxn) -> heed::Result<Option<usize>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue