Bug 1967247 Comment 2 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

From the MySQL docs:
---
 If the transaction isolation level is REPEATABLE READ (the default level), all consistent reads within the same transaction read the snapshot established by the first such read in that transaction. You can get a fresher snapshot for your queries by committing the current transaction and after that issuing new queries.

With READ COMMITTED isolation level, each consistent read within a transaction sets and reads its own fresh snapshot. 
---

The export script reads rows in 1000 chunks so we cannot use READ COMMITTED as it would be a new snapshot for each SELECT and so the total row count could change.
From the MySQL docs:

---

 If the transaction isolation level is REPEATABLE READ (the default level), all consistent reads within the same transaction read the snapshot established by the first such read in that transaction. You can get a fresher snapshot for your queries by committing the current transaction and after that issuing new queries.

With READ COMMITTED isolation level, each consistent read within a transaction sets and reads its own fresh snapshot. 

---

The export script reads rows in 1000 chunks so we cannot use READ COMMITTED as it would be a new snapshot for each SELECT and so the total row count could change.

Back to Bug 1967247 Comment 2