Commit f61a61f
committed
perf(custody-probes): order by partition key for ClickHouse early cutoff
Order int_custody_probe_order_by_slot queries by slot_start_date_time
(partition key) instead of probe_date_time. This allows ClickHouse to use
early cutoff optimization and avoid scanning 27M+ rows just to fetch 30-50
results. Since slot_start_date_time and probe_date_time are nearly identical,
the result ordering is unchanged.1 parent 8e0a6f5 commit f61a61f
2 files changed
Lines changed: 4 additions & 2 deletions
File tree
- src/pages/ethereum/data-availability/custody/components
- CellProbeDialog
- LiveProbeEvents
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
| 182 | + | |
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
| 115 | + | |
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
| |||
0 commit comments