python - Should I use MySQL Lock Table or there exists better solution? - I am working on a multi-processing application, and each process sometimes executes the following code: