From 5bff2a6c9e14763ca8764cf75adba0efbf990e50 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Fri, 31 Jul 2026 22:27:58 +0200 Subject: pgruntime: in ConnectForTest, only truncate tables instead of recreating the database DROP + CREATE DATABASE was measured at 100 ms per ConnectForTest(), which is prohibitively slow in large test suites. This should be more in the ballpark of 10 ms per test. --- pgruntime/pgruntime.go | 1 - 1 file changed, 1 deletion(-) (limited to 'pgruntime/pgruntime.go') diff --git a/pgruntime/pgruntime.go b/pgruntime/pgruntime.go index ed44076..17a6c94 100644 --- a/pgruntime/pgruntime.go +++ b/pgruntime/pgruntime.go @@ -28,5 +28,4 @@ // [gg-pgx]: https://git.xyrillian.de/go-gg-pgx/ package pgruntime -// TODO: before merging this branch, start work on go-gg-pgx to verify that we're not painting ourselves into a corner with the gsql.Handle interfaces // TODO: test coverage via separate module importing github.com/lib/pq -- cgit v1.3.1