There is a table of calls. When adding data, you need to compare so that there are no duplicates. Comparison of only by the time allowed to start a call using the Unique field and INSERT IGNORE impossible. there is a possibility of a call from different numbers at one time, i.e. one call to the database will not get that bad. I tried to add another unique method to the number from which the call was being made following the logic that at one point in time there could not be 2 calls from one number. But in general, it was recorded at least 30% less records. hike this approach is also not working. Can someone tell me how to put in the database values ​​for 2 fields. 
|
create indexcommands. Although something tells me that you need to do this with a trigger and it’s about time to round it up. otherwise, with a difference of 1 second, uniqueness will not help - MikeINSERT IGNOR INTO- ASYOU team