docs: supabase migration for large number of rows (#4798)

Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
This commit is contained in:
KinfeMichael Tariku
2025-11-20 23:50:39 +03:00
committed by GitHub
parent 252ab7e2fa
commit e9fc045c07

View File

@@ -930,6 +930,10 @@ You can configure the script using `CONFIG` inside the script.
<Step>
### Run the migration script
<Callout type="warning">
**Large Datasets (100k+ users)**: Use streaming/pagination with [`pg-cursor`](https://www.npmjs.com/package/pg-cursor) or [keyset pagination](https://use-the-index-luke.com/no-offset) to avoid OOM errors. Process in batches of 1000 rows with concurrency limit of 8. Add `NODE_OPTIONS="--max-old-space-size=8192"` as temporary fix.
</Callout>
Run the migration script to migrate the users and accounts from Supabase to Better Auth.
```bash title="Terminal"