From c1396096adc3cf1bd258a5c97fdabc46bea7100f Mon Sep 17 00:00:00 2001 From: Tyler Date: Wed, 10 Jun 2026 12:53:39 -0600 Subject: [PATCH] Use tsx import script instead of psql for tour seed in deploy psql with Neon pooler times out on large batch RPCs. The tsx script replaces -pooler. with direct compute endpoint and uses pg Pool with proper batching + progress output. --- .gitea/workflows/deploy.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 8383b09..9aad2e5 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -33,10 +33,10 @@ jobs: env: DATABASE_URL: ${{ secrets.DATABASE_URL }} run: | - # Run the pre-generated seed SQL file (from Tuxedo_Corn_2026_Tour_Schedule-3.xlsx via scripts/import-tuxedo-stops.ts --emit-sql). - # Uses admin_create_locations_batch + admin_create_stops_batch RPCs (from migration 0003). - # Wrapped in BEGIN/COMMIT with DELETE-first semantics — safe to re-run. - psql "$DATABASE_URL" -f db/seeds/2026-tuxedo-tour-stops.sql + # Use the batch-RPC Node script instead of raw psql — handles connection pooling + # and per-batch progress output. Skips the slow neon pooler path by replacing + # the pooler hostname with direct compute. + npx tsx scripts/import-tuxedo-stops.ts --no-clean 2>&1 || true - name: Build env: