Skip to content

perf(postgres): stream compliance projection children - #2650

Merged
jonathanhaaswriter merged 2 commits into
mainfrom
codex/grc-state-read-profile
Aug 26, 2026
Merged

perf(postgres): stream compliance projection children#2650
jonathanhaaswriter merged 2 commits into
mainfrom
codex/grc-state-read-profile

Conversation

@jonathanhaaswriter

Copy link
Copy Markdown
Collaborator

Summary

  • omit normalized occurrence and milestone arrays from current JSONB only while loading detail projections
  • decode immutable revision, occurrence, and action rows as SQL rows arrive instead of buffering raw JSON bodies
  • preserve tenant and parent predicates, ordering, stored records, list behavior, and response shape

Validation

  • go test ./internal/statestore/postgres -count=1
  • go test ./internal/complianceremediation -count=1
  • go test ./internal/bootstrap -run Compliance(Remediation|Work)|GRC -count=1
  • go test -race ./internal/statestore/postgres -run focused compliance tests -count=1
  • make check-structural check-structural-test check-arch
  • BenchmarkComplianceWorkItemOccurrenceReadMaterialization: 759783 to 474256 B/op; 9003 to 5409 allocs/op

Full local make verify stopped before Cargo execution at the managed capacity gate; hosted required checks remain authoritative.

@jonathanhaaswriter jonathanhaaswriter added the run-integration Run PostgreSQL and Neo4j integration checks label Aug 26, 2026
@jonathanhaaswriter
jonathanhaaswriter merged commit 2911abc into main Aug 26, 2026
89 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-integration Run PostgreSQL and Neo4j integration checks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant