Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đã đóng
#6,686 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@7ttp đang làm issue này rồi.

Từ ngày 21/9/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

🐛 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

Ngôn ngữ chính
TypeScript
Star
2.4k
Fork
531
Merge trung bình
1 ngày 4 giờ
Pull request đã merge (30 ngày)
346

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của supabase/cli

Tất cả issue của supabase/cli

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.