Use set_session instead of set_isolation_level
The method set_isolation_level
exists since 2.4.2. This will reduce the number of query at the beginning of the transaction.
The method set_isolation_level
exists since 2.4.2. This will reduce the number of query at the beginning of the transaction.