Add document database stats

This commit is contained in:
ManyTheFish
2025-02-10 14:10:13 +01:00
committed by Kerollmops
parent 91a8a97045
commit 9a6c1730aa
9 changed files with 145 additions and 6 deletions

View File

@ -370,7 +370,8 @@ pub fn snapshot_index_mapper(rtxn: &RoTxn, mapper: &IndexMapper) -> String {
let stats = mapper.stats_of(rtxn, &name).unwrap();
s.push_str(&format!(
"{name}: {{ number_of_documents: {}, field_distribution: {:?} }}\n",
stats.number_of_documents, stats.field_distribution
stats.documents_database_stats.number_of_entries(),
stats.field_distribution
));
}