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::{
103
103
index_backfill_timer,
104
104
log_index_backfilled,
105
105
log_num_indexes_to_backfill,
106
+ tablet_index_backfill_timer,
106
107
} ,
107
108
retention:: LeaderRetentionManager ,
108
109
Database ,
@@ -377,6 +378,7 @@ impl<RT: Runtime> IndexWorker<RT> {
377
378
table_mapping : & TableMapping ,
378
379
index_documents : BTreeMap < ResolvedDocumentId , ResolvedDocument > ,
379
380
) -> anyhow:: Result < ( ) > {
381
+ let _timer = tablet_index_backfill_timer ( ) ;
380
382
let index_registry = IndexRegistry :: bootstrap (
381
383
table_mapping,
382
384
index_documents. into_values ( ) ,
Original file line number Diff line number Diff line change @@ -69,6 +69,14 @@ pub fn index_backfill_timer() -> CancelableTimer {
69
69
CancelableTimer :: new ( & DB_INDEX_BACKFILL_SECONDS )
70
70
}
71
71
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
+
72
80
register_convex_histogram ! (
73
81
DATABASE_WRITE_TX_READ_INTERVALS_TOTAL ,
74
82
"Number of read intervals in a write transaction"
You can’t perform that action at this time.
0 commit comments