Delayed retrieve of updated field

Hi, we are working with MariaDB creating an app that needs to check a field in a table that is updated frequently upon events occurance. We see that the field is updated in DB but when retriving it it does not show the updated value in real time. After 30-40 seconds the updated value is retrived correctly from the polling algorithm. Any suggestion will be appreciated.

Regards Corrado

Answer Answered by Daniel Black in this comment.

Try retrieving with a READ COMMITED isolation level.

Because the default isolation level is REPEATABLE READ, repeat reads read the same result repeatedly. (that was far to repetitious :-) )


Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.