global: MASSIVE snapshot

This commit is contained in:
nym21
2026-01-02 19:08:20 +01:00
parent ac6175688d
commit 3e9b1cc2b2
462 changed files with 34975 additions and 20072 deletions

View File

@@ -0,0 +1,28 @@
use brk_error::Result;
use brk_indexer::Indexer;
use vecdb::Exit;
use crate::{indexes, price, ComputeIndexes};
use super::Vecs;
impl Vecs {
pub fn compute(
&mut self,
indexer: &Indexer,
indexes: &indexes::Vecs,
price: Option<&price::Vecs>,
starting_indexes: &ComputeIndexes,
exit: &Exit,
) -> Result<()> {
self.count
.compute(indexer, indexes, starting_indexes, exit)?;
self.value
.compute(indexer, indexes, price, starting_indexes, exit)?;
let _lock = exit.lock();
self.db.compact()?;
Ok(())
}
}