I have a queue data structure where multiple threads consume items, each thread is going to write to a database using PyMySQL, no other sync is needed among threads.
Is it race free to use the same cursor coming from the same pymysql connection in all threads?
Is it race free to use different cursor per thread coming from the same connection?
(of course to use multiple connections in multiple threads is ok, because in this case there is no shared resource, I have no interest in this case)