-
[NA] [BE] Optimize SELECT_TRACES_STATS query in TraceDAO (#4982)
发布于
2026-01-29 15:01:32 +00:00 - Add spans_data CTE to pre-filter spans with time filters before aggregation
- Remove redundant target_spans CTE by reusing spans_data
- Remove subquery filters from span_feedback_scores_combined_raw
- Simplify error count calculation with inline countIf instead of separate CTEs
- Fix StringTemplate escape for less-than operator in error count comparison
下载附件