I am writing an app that will send a POST request to insert a new record into the database. Every records inserted will have an epoch time so me to track when is the record inserted. So far everything works fine in the testing stage. However, when the app is released for some time, I noticed that there are duplicate records in the database (same epoch time), but not all records are duplicated (mostly are not duplicated). So, I am curious that how this could happen and is there any ways to handle this it would be better that there is no any duplicated records in the database.
↧