diff --git a/src/db/index.ts b/src/db/index.ts index 5ac2a2f..5049767 100644 --- a/src/db/index.ts +++ b/src/db/index.ts @@ -19,9 +19,10 @@ import * as schema from "./schema"; // so there is no subset of this app that works there. // // So `prepare: false` is necessary but nowhere near sufficient, and running -// behind pgCat is an unverified claim rather than a tested path. PgBouncer is -// the pooler this configuration is actually known to suit. Migrations go -// straight at Postgres regardless - drizzle.config.ts has no way to pass +// behind pgCat does not work. PgBouncer 1.22 in transaction mode does: the +// same queries pass, 40 concurrent ones multiplex over a pool of 2 server +// connections, and scripts/e2e-authz.sh passes all 68 checks through it. +// Migrations go straight at Postgres regardless - drizzle.config.ts has no way to pass // `prepare: false`, and drizzle-kit hung at commit for the same reason. const connectionString = process.env.DATABASE_URL; if (!connectionString) {