I'm not sure how to achieve consistent read across multiple SELECT
queries.
I need to run several SELECT
queries and to make sure that between them, no UPDATE
, DELETE
or CREATE
has altered the overall consistency. The best case for me would be something non blocking of course.
I'm using MySQL 5.6 with InnoDB and default REPEATABLE READ
isolation level.
The problem is when I'm using RDS DataService beginTransaction
with several executeStatement
(with the provided transactionId
). I'm NOT getting the full result at the end when calling commitTransaction
.
The commitTransaction
only provides me with a { transactionStatus: 'Transaction Committed' }
..
I don't understand, isn't the commit transaction fonction supposed to give me the whole (of my many SELECT
) dataset result?
Instead, even with a transactionId
, each executeStatement
is returning me individual result... This behaviour is obviously NOT consistent..