Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Slow seeding when having a large seed file and an anonymous block.

Chiusa
#6,686 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@7ttp ci sta già lavorando.

Dal 21/9/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

🐛 Bug supabase/cli
Affected area

Seeding

Supabase CLI version

2.117.0

Operating system

linux x64

Installation method

No response

Command
supabase db reset
Actual output
Very slow seed execution, over one minute
Expected behavior

Fast seed, as fast as when directly running with postgres, milliseconds at most.

Steps to reproduce

Have a seed file that looks like

DO $$
BEGIN

/* 1 MB block of SQL code */

END $$;

Run the seed, e.g. by supabase db reset.
This takes over a minute to run, even if the sql itself is fast.

Removing the anonymous block makes it fast. It looks like the seed sql parser has some quadratic complexity for finding the closing $$.
Other tags with open/close semantics also cause slowness, like /* ... */ comments, a large file with those is also slow. Single line comments -- are not slow.

Crash report ID

No response

Docker and service versions

Additional context

No response

Lingua principale
TypeScript
Stelle
2.4k
Fork
531
Merge medio
1g 4h
PR unite (30g)
346

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di supabase/cli

Tutte le issue di supabase/cli

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.