Acceptable method to insert multiple rows
I'm trying to create (x) number of rows in one table and for each of the created rows I want to create (x) number of rows in a different table.
Currently I am doing a bulk insert of the first table and then mapping over the returned data and doing a bulk insert for each iteration on the map.
To me this feels like there should be a better way to accomplish this. Especially when it comes to having to do any updates.
Currently I am doing a bulk insert of the first table and then mapping over the returned data and doing a bulk insert for each iteration on the map.
To me this feels like there should be a better way to accomplish this. Especially when it comes to having to do any updates.