I have an app where users can import records via CSV to the Database.
Problem is that when there are too many records (probably around 5000?) the system will basically only work for the first user who sent the request and the requests from the other users will be sent but no data will actually be inserted into the database and the users are forced to wait until the first person has finished and then can insert their data.
Currently this process is currently done by a for loop inserting a record one at a time.
What would be the correct way to implment this issue so users can insert records simultaneously?