
Firebolt
Use Firebolt EXPLAIN ANALYZE to compare renewal reporting query work at the same result grain.
- Baseline
- Profile a fixed week of renewal activity.
- Revised predicate
- Compare filtering the raw timestamp with filtering its date conversion.
- Result check
- Counts and amounts reconcile before comparing operator work.
Check the expensive operator on a renewal report
MongoDB acquired Firebolt in November 2026. In an existing Firebolt test environment, run EXPLAIN (ANALYZE) on a query that groups renewal events by account for a fixed seven-day UTC window. Inspect the scan operator and note how much data it processes. Build a second version that filters the raw timestamp with an inclusive start and exclusive end. Keep the same engine, data snapshot, and selected columns. The test measures whether the revised predicate improves this table layout.
Use rows just before midnight, at the start boundary, at the final minute inside the window, and at the end boundary. Compare the raw query output in addition to the profile. If the revised version differs, resolve the timestamp semantics before considering a performance change. Record warm and cold conditions separately where you can control them.
| Measure | Expected result |
|---|---|
| Boundary events | Start-time row counts, end-time row falls in the next week. |
| Per-account totals | Both versions show identical event counts and renewal amounts. |
| Scan operator metrics | Log actual data processed and runtime for both versions. Reuse the faster form only when the results tie. |
Track the source grain and reporting window in the data flow documentation.