Bug with inserting multiple data
hackermondev opened this issue · 1 comments
hackermondev commented
Describe the bug
If I send a POST request to add data to a collection and then do it again without waiting for the first one to finish, only one of them will save. We don't want this to happen, we want both of them to save.
Expected behavior
A clear and concise description of what you expected to happen.
Both of the data to save instead of only one getting saved.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
This probably can be fixed by caching data instead of making requests to MongoDB each time the user requests data or changes data.
hackermondev commented
Caching should also improve the amont of time it takes for it to get the data which should fix a lot of issues.