-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable COPY
for seed and migrations
#2636
Comments
Can you share the time it took for you and the size of database you are seeding? The default multiline insert statements emitted by Unfortunately the syntax of That said, the current recommendation for seeding larger datasets is to use |
Understood, thank you for this quick answer 🥇 I'm seeding 400k+ rows the problem is when you export the data, the database using We can mix them, but it's less convenient than trigger a PS: Is there a way to split the |
Hey ! We just merged #2702 that should help with that. |
great thank you @avallete |
Describe the bug
INSERT INTO
is slow for data dump in comparison toCOPY
when you need to scale,COPY
is also the default export withpg_dump
for postgres.Migrations
andseed.sql
that contains COPY statement fails.To Reproduce
Steps to reproduce the behavior:
COPY
statement to feed your DBsupabase db reset
Expected behavior
Successfull migration
Screenshots
System information
Rerun the failing command with
--create-ticket
flag.f06acc6824804d0a8044a1a8bd6d1108
MacOS 14.1.1
1.190.0
Docker version 27.1.1, build 6312585
N/A
The text was updated successfully, but these errors were encountered: