We have a MySQL database which we use in our .NET MVC Web App. We implement connection pooling as it has some great performance benefits.
We also have some fairly he
So the answer was simply drop the temp table before recreating each time. There are no concurrency issues as it only ever can run one command at a time.