Skip to content

web search done right

optimize webgraph for read after merges

Mikkel Denkerb99429aa5e67
diff --git a/crates/core/src/main.rs b/crates/core/src/main.rs
index 785e9958..317d4c22 100644
--- a/crates/core/src/main.rs
+++ b/crates/core/src/main.rs
@@ -330,6 +330,8 @@ fn main() -> Result<()> {
webgraph.merge(other)?;
std::fs::remove_dir_all(other_path).unwrap();
}
+
+ webgraph.optimize_read();
}
WebgraphOptions::Server { config_path } => {
let config: config::WebgraphServerConfig = load_toml_config(config_path);