Split Supabase seed data into reviewable files
Why one giant Supabase seed dump is hard to review and edit, and how Supabee sync data splits it safely.
One giant seed file
supabase db dump --data-only dumps your seed data into a single file. On the same orders table, it looks like this:
-- supabase/seeds/prod-data.sql
INSERT INTO "public"."orders" ("id", "customer_id", "total", "status") VALUES
('bd6bdd16-a965-4576-97af-46cd98ed2efd', '2b2ef286-c72d-434b-8f7c-5c185052fb17', 42.50, 'paid'),
('c81a0f42-1f0e-4a6d-9c33-70bb1f3a91d4', '5f2a3c19-88b7-4e21-9a0c-2d7e64b1f8aa', 18.00, 'pending'),
-- ... about 100,000 more rows, then every other table after itFor data-intensive projects, a single file becomes difficult to review and edit. Every table change is buried in one enormous diff, and reproducing a bug means finding the right rows among everything else.
For example, you change a few rows to reproduce a bug or empty a table to check a blank state. With one giant file, every round starts by searching for those rows again.
Use supabee sync data
supabee sync datasupabee sync data dumps the data and splits it into numbered files in load order, then reconstructs and validates the result so you know the split files still load.
Per-table files are numbered in load order. The split is by size, not just by table, so a table with a hundred thousand rows can become several files while small tables get one or two. embeddings, for example, can run across files 43 to 51.