Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

クローズ
#6,686 コメント 1 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@7ttp がすでに取り組んでいます。

2026年9月21日 から。

評価

この issue はまだ評価されていません。

説明

🐛 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

主要言語
TypeScript
スター
2.4k
フォーク
531
平均マージ
1日 4時間
マージ済み PR(30日)
346

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

supabase/cli のほかの issue

supabase/cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。