im fetching simultaneous data from some api using nodejs. my database is mysql.
INSERT into mysql(tabels) values (values)

the problem is sometimes the api doesnt run nor stop maybe becouse a timeout error(sometimes) or something;
what happens if the we query insert at the same time?
how do you insert hundreds of data async simultaneously from many source?
how do you do it? is there any database like mangodb or anything maybe already built for something like this?