Commit 75c6f14 1 parent 57b45e7 commit 75c6f14 Copy full SHA for 75c6f14
File tree 2 files changed +21
-2
lines changed
2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -320,4 +320,24 @@ impl ChunkStore {
320
320
. sum ( )
321
321
} )
322
322
}
323
+
324
+ /// Returns the number of temporal events logged for an entity for a specific component on all timelines.
325
+ ///
326
+ /// This ignores static events.
327
+ pub fn num_temporal_events_for_component_on_all_timelines (
328
+ & self ,
329
+ entity_path : & EntityPath ,
330
+ component_name : ComponentName ,
331
+ ) -> u64 {
332
+ self . all_timelines ( )
333
+ . iter ( )
334
+ . map ( |timeline| {
335
+ self . num_temporal_events_for_component_on_timeline (
336
+ timeline,
337
+ entity_path,
338
+ component_name,
339
+ )
340
+ } )
341
+ . sum ( )
342
+ }
323
343
}
Original file line number Diff line number Diff line change @@ -75,8 +75,7 @@ impl DataUi for ComponentPathLatestAtResults<'_> {
75
75
76
76
let temporal_message_count = engine
77
77
. store ( )
78
- . num_temporal_events_for_component_on_timeline (
79
- & query. timeline ( ) ,
78
+ . num_temporal_events_for_component_on_all_timelines (
80
79
entity_path,
81
80
* component_name,
82
81
) ;
You can’t perform that action at this time.
0 commit comments