I am trying to send several hundred thousand JSON objects to a database via API post calls. The problem is that when I try to send all those JSON objects to the database, with seperate calls for each object, I get a lot of HTTP errors, mostly 400.
My question is, is there a better way to send all the JSON objects to the databse? Could I send them all at once? Wait between API calls?
I do not if it's important but I'm trying to send the data to a DynamoDB via a AWS API.