When updating the knowledge base for the QnA Maker, I've noticed that if multiple users happen to try adding a new QnA pair within a few seconds of each other, the second one will overwrite the first. I'm guessing this is due to each process running asynchronously, where each will try to use the next available ID but will end up selecting the same one which will end up with the first one being just updated to the second instead of creating a new pair.
Is there any way to get around this through the API? I've tested with trying to include different IDs in the request but it seems to ignore that field. Maybe a way to query the knowledge base to see if it is currently running an "Add" operation and waiting until that is complete?
Thanks