MySQL Forums
Forum List  »  Newbie

Re: Simulating sequences
Posted by: Peter Brawley
Date: June 30, 2014 10:49AM

Quote

This works well until the system is heavily loaded. When heavily loaded, I sometimes get a zero value as the rowsUpdated value. I assume this is because two threads were doing the update at the same time.

last_insert_id() doesn't work with deletion. Any possibility a row was deleted by another process?

No error messages after that execute() call? No errors or warnings in the mysql or php logs?

Did you try putting the code in a standard transaction block with rollback code?



Edited 1 time(s). Last edit at 06/30/2014 04:05PM by Peter Brawley.

Options: ReplyQuote


Subject
Written By
Posted
June 30, 2014 10:26AM
Re: Simulating sequences
June 30, 2014 10:49AM
July 02, 2014 01:37PM
July 03, 2014 12:17PM
July 07, 2014 08:50AM
July 07, 2014 11:25AM
July 07, 2014 08:16PM
July 08, 2014 03:08PM
July 08, 2014 08:03PM
July 09, 2014 12:56PM
July 09, 2014 03:13PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.