Skip to content

Commit e2829b7

Browse files
committed
chore: expose index bloat size_bytes
1 parent 60ca7e3 commit e2829b7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

crates/dry_run_core/src/schema/bloat.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ pub struct BloatedIndexEntry {
2424
pub bloat_ratio: f64,
2525
pub actual_pages: i64,
2626
pub expected_pages: i64,
27+
pub size_bytes: i64,
2728
pub definition: String,
2829
}
2930

@@ -47,6 +48,7 @@ pub fn detect_bloated_indexes(
4748
bloat_ratio: est.bloat_ratio,
4849
actual_pages: est.actual_pages,
4950
expected_pages: est.expected_pages,
51+
size_bytes: sizing.map(|s| s.size).unwrap_or(0),
5052
definition: idx.definition.clone(),
5153
});
5254
}

0 commit comments

Comments
 (0)