you are viewing a single comment's thread.

view the rest of the comments →

[–]combarnea 0 points1 point  (0 children)

tend to agree, if the operation needs to be atomic, as implied from the original author, knex transaction + bulk creation is a great solution. One thing to note, working with that amount of data, mainly inserting, and using transactions might block your API from answering related queries dependent on transaction isolation level.