I have a object of 365 elements like this:
data = [ { "a": "a", "b": "b", "c": "c", "date": 1663192800000},
{ "a": "a", "b": "b", "c": "c", "date": 1663293800000}
{ "a": "a", "b": "b", "c": "c", "date": 1643294800000}
...
]
I have tried something like this, but the process is slow:
for(var i = 0; i<this.data.length; i++){
Promise.all([axios.post( "URL",this.data[i])]).then((response) => this.getData())
}
How can I speed up the sending of data to the db?