ibrahimyaacob
ibrahimyaacob12mo ago

how do i insert many ?

do i have to map insert ?? Feels inefficient no ?
9 Replies
erquhart
erquhart12mo ago
It does feel inefficient! But it’s not at all, and yeah mapping/looping is the way. You can async map for concurrent inserts as well.
ibrahimyaacob
ibrahimyaacobOP12mo ago
okay thank you
erquhart
erquhart12mo ago
It’s really very fast
ibrahimyaacob
ibrahimyaacobOP12mo ago
im migrating a whole project from firebase to convex btw
erquhart
erquhart12mo ago
Nice! Feel free to post questions along the way
ibrahimyaacob
ibrahimyaacobOP12mo ago
i have this one https://discord.com/channels/1019350475847499849/1219202999659003977 there's like 100,000 production records that'll be transferr
erquhart
erquhart12mo ago
Ah this is for migration Splitting into chunks should suffice
erquhart
erquhart12mo ago
Streaming import may be worth looking at, assuming it’s compatible with firebase: https://docs.convex.dev/database/import-export/streaming
lee
lee12mo ago
could also use npx convex import if it's a one-time migration

Did you find this page helpful?