global: veccached change

This commit is contained in:
nym21
2026-04-10 11:30:29 +02:00
parent 12aae503c9
commit 286256ebf0
118 changed files with 579 additions and 900 deletions

View File

@@ -5,7 +5,7 @@ use vecdb::Database;
use super::Vecs;
use crate::{
indexes,
internal::{CachedWindowStarts, PerBlockAggregated},
internal::{PerBlockAggregated, WindowStartVec, Windows},
};
impl Vecs {
@@ -13,7 +13,7 @@ impl Vecs {
db: &Database,
version: Version,
indexes: &indexes::Vecs,
cached_starts: &CachedWindowStarts,
cached_starts: &Windows<&WindowStartVec>,
) -> Result<Self> {
Ok(Self(PerBlockAggregated::forced_import(
db,

View File

@@ -6,7 +6,7 @@ use brk_types::Version;
use crate::{
indexes,
internal::{
CachedWindowStarts,
WindowStartVec, Windows,
db_utils::{finalize_db, open_db},
},
};
@@ -18,7 +18,7 @@ impl Vecs {
parent_path: &Path,
parent_version: Version,
indexes: &indexes::Vecs,
cached_starts: &CachedWindowStarts,
cached_starts: &Windows<&WindowStartVec>,
) -> Result<Self> {
let db = open_db(parent_path, super::DB_NAME, 20_000_000)?;
let version = parent_version;