… the REPEATABLE_READ isolation level, the snapshot is created on the first SELECT for each transaction. For lower isolation levels it is created for each SELECT, even within the same transaction. Why is that… transactions, while a great optimization in itself, applies only to the following kinds of transactions: MySQL transactions started with START TRANSACTION READ ONLY MySQL transactions…
Post: trx descriptors: MySQL performance improvements in Percona Server 5.5.30-30.2
Post: Innodb undo segment size and transaction isolation
…. Now lets move on to the main topic – how does transaction isolation affects purging ? Innodb is smart and trying to purge data… cause problems in this case anyway, even if you set transaction isolation to lowest READ-UNCOMMITTED level Innodb will not purge the… setting isolation mode to READ-COMMITTED can be good idea if your application supports it. Note you can set isolation mode on transaction…
Post: Differences between READ-COMMITTED and REPEATABLE-READ transaction isolation levels
… about the differences between the READ COMMITTED and REPEATABLE READ transaction isolation levels. There are a few differences between READ-COMMITTED and…, but we are now holding only one lock. In all transaction isolation levels InnoDB creates locks over every index entry scanned. The… internals day covers MVCC and locking in detail The SET TRANSACTION ISOLATION LEVEL MySQL manual page
Post: InnoDB's gap locks
… write queries, in spite of your chosen transaction isolation level (considering only the two most common isolation levels, REPEATABLE READ and READ COMMITTED… the ISOLATION level to READ COMMITTED. In this isolation level, it is normal and expected that query results can change during a transaction…
Post: MVCC: Transaction IDs, Log Sequence numbers and Snapshots
… consider transaction 101 which is running in REPEATABLE-READ isolation mode and which was started before transaction 100 have committed. In such case transaction 101 should not see changes done by transaction…
Comment: InnoDB's gap locks
… queries, in spite of your chosen transaction isolation level” I have two sessions with REPEATABLE READ transaction isolation level. mysql> show create table t\G… | repls | +——+——–+ Then I start two transactions, session1 and session2: session1> start transaction; select * from t; session2> start transaction; select * from t; I delete… you were using READ COMMITTED in spite of your chosen transaction isolation level. So lets try to remove the row 1 again…
Comment: SELECT LOCK IN SHARE MODE and FOR UPDATE
… the transaction isolation level properly set? For ODBC use the ODBC API and something like: SQLSetConnectAttr(dbc_h, SQL_ATTR_TXN_ISOLATION, (SQLPOINTER) isolation… to specify BEGIN statements. A new transaction start automatically after the previous transaction commits. To commit a transaction in ODBC, use the API…
Comment: Innodb Performance Optimization Basics
….5/en/binary-log-mixed.html Page, if you set transaction-isolation=READ-COMMITTED, you cannot use Statement-based Binary Logging, but… the transaction-isolation. Since (I assume) Row-based logging is a performance hit, isn’t it better to stick to the default transaction-isolation…

