mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-02-18 16:28:29 +01:00
Also count the direct_inserts
This commit is contained in:
parent
f355cf6985
commit
7adc715783
@ -210,6 +210,10 @@ where
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn direct_insert(&mut self, key: &[u8], val: &[u8]) -> Result<(), grenad::Error<U>> {
|
pub fn direct_insert(&mut self, key: &[u8], val: &[u8]) -> Result<(), grenad::Error<U>> {
|
||||||
|
self.cbo_buffer.clear();
|
||||||
|
self.cbo_buffer.extend_from_slice(self.prefix);
|
||||||
|
self.cbo_buffer.extend_from_slice(key);
|
||||||
|
self.conn.merge(&self.cbo_buffer, 1u32.to_ne_bytes()).unwrap();
|
||||||
self.sorter.insert(key, val)
|
self.sorter.insert(key, val)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user