Skip to content

Commit

Permalink
enable 3.5ms budget in main app
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Nov 30, 2023
1 parent 2d00c22 commit 9483825
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/re_data_store/src/store_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ const MAX_INSERT_ROW_ATTEMPTS: usize = 1_000;
/// See [`insert_row_with_retries`].
const DEFAULT_INSERT_ROW_STEP_SIZE: u64 = 100;

/// See [`GarbageCollectionOptions::time_budget`].
const GC_TIME_BUDGET: std::time::Duration = std::time::Duration::from_micros(3500); // empirical

/// Inserts a [`DataRow`] into the [`DataStore`], retrying in case of duplicated `RowId`s.
///
/// Retries a maximum of `num_attempts` times if the row couldn't be inserted because of a
Expand Down Expand Up @@ -434,7 +437,7 @@ impl StoreDb {
.into_iter()
.collect(),
enable_batching: false,
time_budget: std::time::Duration::MAX,
time_budget: GC_TIME_BUDGET,
});
}

Expand All @@ -452,7 +455,7 @@ impl StoreDb {
purge_empty_tables: false,
dont_protect: Default::default(),
enable_batching: false,
time_budget: std::time::Duration::MAX,
time_budget: GC_TIME_BUDGET,
});
}

Expand Down

0 comments on commit 9483825

Please sign in to comment.