2994 bugweb ng slow queries #3016
No reviewers
Labels
No labels
1week
2weeks
Failed compliance check
IP cameras
NATS
Possible security concern
Review effort 1/5
Review effort 2/5
Review effort 3/5
Review effort 4/5
Review effort 5/5
UI
aardvark
accessibility
amd64
api
arm64
auth
back-end
bgp
blog
bug
build
checkers
ci-cd
cleanup
cnpg
codex
core
dependencies
device-management
documentation
duplicate
dusk
ebpf
enhancement
eta 1d
eta 1hr
eta 3d
eta 3hr
feature
fieldsurvey
github_actions
go
good first issue
help wanted
invalid
javascript
k8s
log-collector
mapper
mtr
needs-triage
netflow
network-sweep
observability
oracle
otel
plug-in
proton
python
question
reddit
redhat
research
rperf
rperf-checker
rust
sdk
security
serviceradar-agent
serviceradar-agent-gateway
serviceradar-web
serviceradar-web-ng
siem
snmp
sysmon
topology
ubiquiti
wasm
wontfix
zen-engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
carverauto/serviceradar!3016
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/3016/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from GitHub pull request.
Original GitHub pull request: #2995
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2995
Original created: 2026-03-05T17:15:35Z
Original updated: 2026-03-05T18:17:50Z
Original head: carverauto/serviceradar:2994-bugweb-ng-slow-queries
Original base: staging
Original merged: 2026-03-05T18:17:48Z by @mfreeman451
IMPORTANT: Please sign the Developer Certificate of Origin
Thank you for your contribution to ServiceRadar. Please note, when contributing, the developer must include
a DCO sign-off statement indicating the DCO acceptance in one commit message. Here
is an example DCO Signed-off-by line in a commit message:
Describe your changes
Issue ticket number and link
Code checklist before requesting a review
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/2995#issuecomment-4006490138
Original created: 2026-03-05T17:15:59Z
Review Summary by Qodo
Improve web-ng performance and add CNPG slow-query observability
✨ Enhancement🐞 Bug fixWalkthroughs
Description
Diagram
File Changes
1. elixir/serviceradar_core/lib/serviceradar/observability/sysmon_metrics_ingestor.ex
Performance optimization+30/-152. elixir/serviceradar_core/priv/repo/migrations/20260305053000_add_ui_slow_query_indexes.exs
Database optimization+23/-03. elixir/serviceradar_core/priv/repo/migrations/20260305110000_add_device_inventory_rollup_tables.exs
Database schema+240/-0View more (17)
4. elixir/serviceradar_core/test/serviceradar/observability/sysmon_metrics_ingestor_test.exs
🧪 Tests+11/-05. elixir/web-ng/lib/serviceradar_web_ng_web/live/device_live/index.ex
Performance optimization+127/-1256. elixir/web-ng/lib/serviceradar_web_ng_web/live/device_live/show.ex
Performance optimization+230/-257. elixir/web-ng/lib/serviceradar_web_ng_web/srql/builder.ex
🐞 Bug fix+40/-18. elixir/web-ng/test/serviceradar_web_ng_web/srql/builder_test.exs
🧪 Tests+26/-09. rust/srql/src/query/devices.rs
✨ Enhancement+70/-010. docs/docs/cnpg-monitoring.md
📝 Documentation+171/-011. docs/docs/otel.md
📝 Documentation+2/-212. helm/serviceradar/templates/cnpg-prometheus-rules.yaml
⚙️ Configuration changes+72/-013. helm/serviceradar/templates/spire-postgres.yaml
⚙️ Configuration changes+7/-014. helm/serviceradar/values-demo.yaml
⚙️ Configuration changes+7/-015. helm/serviceradar/values.yaml
⚙️ Configuration changes+15/-016. k8s/demo/base/spire/cnpg-cluster.yaml
⚙️ Configuration changes+8/-017. openspec/changes/add-cnpg-slow-query-telemetry/design.md
📝 Documentation+51/-018. openspec/changes/add-cnpg-slow-query-telemetry/proposal.md
📝 Documentation+26/-019. openspec/changes/add-cnpg-slow-query-telemetry/specs/cnpg/spec.md
📝 Documentation+27/-020. openspec/changes/add-cnpg-slow-query-telemetry/tasks.md
📝 Documentation+17/-0Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/2995#issuecomment-4006490228
Original created: 2026-03-05T17:16:01Z
Code Review by Qodo
🐞 Bugs (7)📘 Rule violations (0)📎 Requirement gaps (0)1.
Infinite retry recursion☑🐞 Bug⛯ Reliability2.
Chunk size unsafe type☑🐞 Bug⛯ Reliability3.
Blocking index migration☑🐞 Bug⛯ ReliabilityView more (2)
4.
Flows probe mismatch☑🐞 Bug✓ Correctness5.
SRQL builder parse breaks☑🐞 Bug✓ Correctness6.
Unmonitored LiveView tasks☑🐞 Bug⛯ Reliability7.
Rollup trigger excessive writes☑🐞 Bug➹ PerformanceImported GitHub PR review comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/2995#discussion_r2891302669
Original created: 2026-03-05T17:23:00Z
Original path: elixir/serviceradar_core/lib/serviceradar/observability/sysmon_metrics_ingestor.ex
Original line: 331
1. Infinite retry recursion
🐞 Bug⛯ ReliabilityAgent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation toolsImported GitHub PR review comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/2995#discussion_r2891302672
Original created: 2026-03-05T17:23:00Z
Original path: elixir/serviceradar_core/lib/serviceradar/observability/sysmon_metrics_ingestor.ex
Original line: 249
2. Chunk size unsafe type
🐞 Bug⛯ ReliabilityAgent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation toolsImported GitHub PR review comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/2995#discussion_r2891302675
Original created: 2026-03-05T17:23:00Z
Original path: elixir/serviceradar_core/priv/repo/migrations/20260305053000_add_ui_slow_query_indexes.exs
Original line: 16
3. Blocking index migration
🐞 Bug⛯ ReliabilityAgent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation toolsImported GitHub PR review comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/2995#discussion_r2891302680
Original created: 2026-03-05T17:23:00Z
Original path: elixir/web-ng/lib/serviceradar_web_ng_web/live/device_live/show.ex
Original line: 738
4. Flows probe mismatch
🐞 Bug✓ CorrectnessAgent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation toolsImported GitHub PR review comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/2995#discussion_r2891302682
Original created: 2026-03-05T17:23:00Z
Original path: elixir/web-ng/lib/serviceradar_web_ng_web/srql/builder.ex
Original line: 132
5. Srql builder parse breaks
🐞 Bug✓ CorrectnessAgent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools