Naveen
09/08/2025, 8:03 PM(DATE_TRUNC('DAY', "eventsgroups".servertime)) >= CAST('2025-08-25' AS timestamp)
date_trunc functions?Mayank
Naveen
09/09/2025, 4:08 AMNaveen
09/09/2025, 4:25 AMMayank
Naveen
09/09/2025, 6:33 AMMayank
Manish
09/09/2025, 10:23 AMmerged_ in the segment name if you really want to see which segments have been rolled up.Naveen
09/09/2025, 10:53 AM| # | Query Type | CPU Time | Latency (Elapsed Time) | Rows Scanned (Input Rows) |
| - | ------------------------------------------------------------------ | -------- | ---------------------- | ------------------------- |
| 1 | `COUNT(DISTINCT machine)` | 51 ms | 2.25 s | 1 |
| 2 | `COUNT(seqname)` | 681 ms | 6.35 s | 1.67 M |
| 3 | `COUNT(DISTINCT machine), COUNT(seqname) GROUP BY DAY` | 2.83 s | 7.12 s | 1.67 M |
| 4 | `COUNT(seqname)` with `t2_log = 'Scheduled'` | 297 ms | 4.47 s | 1.67 M |
| 5 | `COUNT(DISTINCT machine), COUNT(seqname) GROUP BY DAY` with filter | 2.92 s | 5.48 s | 1.67 M |
| 6 | `t1_seq, COUNT(seqname) GROUP BY t1_seq (TOP N)` | 909 ms | 0.71 s | 1.67 M |
| 7 | `machine, COUNT(seqname) GROUP BY machine (TOP 5)` | 1.14 s | 0.84 s | 1.67 M |
| 8 | `t1_seqname, COUNT(seqname) GROUP BY t1_seqname (TOP 5)` | 517 ms | 0.50 s | 1.67 M |
| 9 | `COUNT(DISTINCT machine)` with `t2_log = 'Scheduled'` | 3 ms | 1.68 s | 1 |Mayank