File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,7 @@ use crate::{
103103 index_backfill_timer,
104104 log_index_backfilled,
105105 log_num_indexes_to_backfill,
106+ tablet_index_backfill_timer,
106107 } ,
107108 retention:: LeaderRetentionManager ,
108109 Database ,
@@ -377,6 +378,7 @@ impl<RT: Runtime> IndexWorker<RT> {
377378 table_mapping : & TableMapping ,
378379 index_documents : BTreeMap < ResolvedDocumentId , ResolvedDocument > ,
379380 ) -> anyhow:: Result < ( ) > {
381+ let _timer = tablet_index_backfill_timer ( ) ;
380382 let index_registry = IndexRegistry :: bootstrap (
381383 table_mapping,
382384 index_documents. into_values ( ) ,
Original file line number Diff line number Diff line change @@ -69,6 +69,14 @@ pub fn index_backfill_timer() -> CancelableTimer {
6969 CancelableTimer :: new ( & DB_INDEX_BACKFILL_SECONDS )
7070}
7171
72+ register_convex_histogram ! (
73+ TABLET_DB_INDEX_BACKFILL_SECONDS ,
74+ "Time for database indexes to backfill" ,
75+ ) ;
76+ pub fn tablet_index_backfill_timer ( ) -> Timer < VMHistogram > {
77+ Timer :: new ( & TABLET_DB_INDEX_BACKFILL_SECONDS )
78+ }
79+
7280register_convex_histogram ! (
7381 DATABASE_WRITE_TX_READ_INTERVALS_TOTAL ,
7482 "Number of read intervals in a write transaction"
You can’t perform that action at this time.
0 commit comments