Hi, could someone explain the following please?
I have a Java application (app A) which "polls" a MySQL database table
for records with a certain column set to 0. It runs continuously,
utilising the same commection repeatedly.
The other day, I had a support call raised, whereby there were clearly
suitable records in the database, but my application was not selecting
them.
I wrote a standalone test app (app B) to read the same table and list
the records with the column=0. Sure enough, this app listed records as
requested.
So, app A retrieved zero records whilst app B retrieved many. Both
apps *are* using the same select statement.
I think it might be something to do with the rules governing when
updates become visible to clients.
The application that writes records to the database is not mine so I
don't know all the details. It's a php webapp that seems pretty simple
and just does plain inserts into the table with no attempt to do
anything non-default wrt locking afaik.
Any useful comments or clues to help explain this most gratefully
received.
Regards
Martin