What happens when select query happens simultaneously during long updates. Will I be seeing a junk data or the old data before update.


It is controlled by Transaction Isolation Levels in MySQL. Default Transaction Islation Level is Repeatable Read. With this you will see the old data until it is committed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.