Learning center

Can a pull request review detect database connection limits we might exceed?

Yes, as a capacity estimate when the review can identify each pool's maximum size, the number of processes that can coexist, and the database limit. Peak demand still needs a measurement.

Include the rollout overlap#

Suppose six old processes each allow ten connections. A rollout can start six new processes before the old ones drain, and the change raises each new pool to fifteen. The application could then request 60 plus 90 connections. If the database permits 140 and 15 are reserved for other work, the estimated demand exceeds the remaining 125 by 25.

That arithmetic describes a possible peak. Pools may open connections lazily, or a proxy may multiplex them. Verify the rollout limit, database setting, and proxy behavior for this target, then compare with an observed high-water mark. A finding should label assumed values so a reviewer can replace them with measurements. Calculate database connection demand

One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. Eligibility and fair-use terms.

Start free with GitHub

Related reading