Skip to content

perf: update nethvoice-reports with CDR query optimizations#709

Closed
edospadoni wants to merge 1 commit intomainfrom
perf/update-nethvoice-report-optimization
Closed

perf: update nethvoice-reports with CDR query optimizations#709
edospadoni wants to merge 1 commit intomainfrom
perf/update-nethvoice-report-optimization

Conversation

@edospadoni
Copy link
Copy Markdown
Member

Summary

Update NETHVOICE_REPORT_COMMIT in reports/Containerfile to include CDR query performance optimizations.

See nethesis/nethvoice-report#207 for full details on the changes and benchmarks.

Migration

No manual operations required. Index creation and geo column population happen automatically on the first tasks cdr run after the update.

Points to nethesis/nethvoice-report#207 which includes:
- Indexes on source cdr table and generated cdr_YYYY/cdr_YYYY-MM tables
- Range scans replacing date_format() anti-patterns
- Pre-computed geographic columns eliminating correlated subqueries
- LEFT JOIN for trunk type detection instead of per-row subqueries
- REGEXP replaced with LIKE for disposition filters
- Parallel view execution with goroutines
@edospadoni edospadoni closed this Feb 26, 2026
@edospadoni edospadoni deleted the perf/update-nethvoice-report-optimization branch February 26, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant