Quote (oOn @ Apr 26 2015 10:57pm)
In option a : delete n employees, insert m employees, commit at the end
How does a commit work exactly and how quickly does it work? What if a user tries to read during this commit?
did you skip the first half of my post?
Quote
i dont have much experience with mysql specifically (moreso with sqlite, postgres, oracle, and mssqlserver), but they should see what was in the database prior to your transaction if you haven't committed yet. should be easy for you to test this.
create a connection / statement to delete/insert.
create a separate connection/statement to select.
delete/insert but don't commit yet.
select from the table
commit
select again
select again = prior to commit completing