Skip to content

Commit

Permalink
fix db_inspector
Browse files Browse the repository at this point in the history
  • Loading branch information
cswinter committed Feb 24, 2024
1 parent 8f5a93b commit fcaff67
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
24 changes: 23 additions & 1 deletion src/bin/db_bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,4 +230,26 @@ fn small_table_names(load_factor: u64) -> Vec<String> {
// meta: 11
// network
// ingestion requests: 4
// ingestion bytes: 266MiB
// ingestion bytes: 266MiB

// Stats at 8f5a93b
// $ RUST_BACKTRACE=1 RUST_LOG=info cargo run --bin db_bench -- --load-factor=8
// elapsed: 24.591489803s
// total uncompressed data: 256MiB
// total size on disk: 278MiB (SmallRng output is compressible)
// total files: 795
// total events: 73728
// disk writes
// total: 566MiB
// wal: 280MiB
// partition: 275MiB
// compaction: 0.000B
// meta store: 11.9MiB
// files created
// total: 813
// wal: 14
// partition: 794
// meta: 5
// network
// ingestion requests: 14
// ingestion bytes: 280MiB
4 changes: 2 additions & 2 deletions src/bin/db_inspector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ async fn main() {
for segment in &wal {
println!("Segment {} has {} tables", segment.id, segment.data.tables.len());
if opts.wal > 2 {
for (name, table) in segment.data.as_ref().tables {
for (name, table) in &segment.data.as_ref().tables {
println!(" Table {} has {} columns", name, table.columns.len());
if opts.wal > 3 {
for col in table.columns {
for col in &table.columns {
println!(" {:?}", col);
}
}
Expand Down

0 comments on commit fcaff67

Please sign in to comment.