dbgorilla

Know your migration's lock time before you merge

DBGorilla tests every GitHub and GitLab pull request against replayed production traffic on a production-like clone.

Install on GitHub

Using GitLab? Sign up and connect it.

Every new account gets Pro free for 30 days, then it moves to our free tier if a credit card is not added.

dbgorillabotcommented on migrations/002_orders_status_index.sql line 1

On a populated orders table, PostgreSQL's regular CREATE INDEX blocks inserts, updates, and deletes until the build finishes. If this migration will run against live traffic, consider CREATE INDEX CONCURRENTLY and verify that the migration runner permits it outside a transaction.

Read-only, outbound only

  • The collector reads your database's statistics and activity. It has no write path.
  • Every connection it makes is outbound. DBGorilla has no network path into your database.
  • No rows are copied. The test clone holds your statistics, or synthetic data.
  • Customer data is never used to train models.

What gets checked

Migrations

How long a migration locks the table, at your table's real size.

Queries

A missing tenant filter, N+1 loops, and plans that change for the worse.

Indexes

Missing indexes, unused ones, and foreign keys with no index on the child column.

Your team changes nothing

DBGorilla reviews the pull requests you already open. No CI file, no new workflow, no change to how you merge.

What it catches in real pull requests

Queries that ignore the tenant

A lookup accepts a tenant ID and never uses it, so one customer sees another customer's rows.

One query per row

A page loads child rows one parent at a time, so a page of 100 orders runs 101 queries.

Foreign keys with no index

A new foreign key has no index on the child column, so deleting a parent row scans the whole child table.

Setup

  1. Install the DBGorilla app on GitHub, or sign up and connect GitLab.
  2. Open a pull request. The first review arrives in about two minutes.
  3. Add a read-only collector to your database. From then on, each pull request is tested on a production-like clone.
  • SQL Server
  • PostgreSQL
  • MySQL
  • ClickHouse
  • Apache Cassandra

Managed services

  • Azure SQL Database
  • Amazon RDS
  • Amazon Aurora
  • Cloud SQL
  • AlloyDB
  • Azure Database for PostgreSQL
  • Instaclustr

If you can connect to your managed database, so can the collector.

Coming soon

  • MongoDB
  • Apache Kafka
  • OpenSearch
Install on GitHub

Every new account gets Pro free for 30 days, then it moves to our free tier if a credit card is not added.

Questions

  • Not ready to add a read-only collector to your database?

    DBGorilla still reviews the pull request using the diff and the repository's files. Collector setup is in the docs.

  • Does it work with GitHub and GitLab?

    GitHub: install the DBGorilla app on your repositories. GitLab: add the DBGorilla bot to your group. Bitbucket is coming soon. Setup steps are in the GitHub guide and the GitLab guide.

  • What does the free tier include?

    A set number of pull request reviews each month. You need no credit card to start.

  • Where is the security detail?

    In the Security FAQ: every control, and what is enforced today.