- Persist review findings
- Track incremental reviews
- Measure suggestion adoption
- Deduplicate findings across reviews
- Manage concurrency
Before you begin
What data is stored in the database? The database contains two tables:findings: Stores the review findings generated by the agentic review. Each finding includes a title, description, category (such as correctness, security, or performance), and severity level. For code context, each finding stores a diff reference with the file path, line range, and a code snippet in unified diff format. Findings also store supporting evidence with citations, fix suggestions and prompts for downstream agents, and workflow metadata such as deduplication decisions, conversion approvals, attribution status, and Git provider comment IDs.review_runs: Stores review execution metadata, including the PR URL, commit SHA, start time, status, and request ID. This data is used for concurrency management and incremental review tracking.
Only the specific lines referenced by a finding are persisted. No full file contents or complete diffs are stored.
| Feature | Minimum version |
|---|---|
| Findings DB | 1.6.0 |
| Concurrency management | 1.28.0 |
| Incremental review | 1.63.0 |
Set up the database
Option A: Already have a Qodo Aware database
If you already deployed a PostgreSQL instance for Qodo Aware, you can reuse the same PostgreSQL server. Step 1: Create a dedicated database and user On your existing PostgreSQL instance, run the following as asuperuser:
Option B: Fresh PostgreSQL setup
If you don’t have an existing PostgreSQL instance, you need to provision one. Step 1: Recommended instance configuration This can be a managed service (AWS RDS, GCP Cloud SQL, Azure Database for PostgreSQL) or a self-hosted instance.| Resource | Minimum |
|---|---|
| PostgreSQL version | 17 or later |
| CPU | 4 vCPU |
| RAM | 8 GB |
| Disk | 100 GB |
- Enable TCP connections on port 5432.
- Whitelist access from the Kubernetes cluster where Qodo Review is deployed.
superuser:
The Alembic migration will auto-create tables, but creating the database and setting permissions explicitly is recommended for clarity and security.
Configure Qodo Review
These steps apply to both option A and option B. Step 1: Add database credentials to.secrets.toml
Add the following section to your .secrets.toml file:
configMaps section of your values.yaml:
values.yaml:
This runs as a Helm
pre-install/pre-upgrade hook, ensuring the database schema is up to date before the application starts. Database credentials must be available to the job.Verify
Check the migration job After deployment, confirm the migration job completed successfully:db-migration job should show 1/1 completions.
Test the app
Run the/agentic_review command and verify Qodo Review runs properly.