MySQL Forums
Forum List  »  MyISAM

Implement a queue with a table - how?
Posted by: Johan Sandgren
Date: September 17, 2009 02:55AM

Hi,

I'm using a table as a queue, and recently came upon some problems.

Firstly, the table was detecting duplicate error when trying to insert.
It was the auto_increment-key had somehow reached it's maximum value and did not wrap around to 0 again. I would like it to if possible...

Any ideas of how to handle this?

(Of course, when the key wraps around, I need to keep remembering the position where the queue starts, since sorting the posts will not anymore give the first post if sorting on the key).

Greetings,

Johan

Options: ReplyQuote


Subject
Views
Written By
Posted
Implement a queue with a table - how?
6624
September 17, 2009 02:55AM
2995
September 18, 2009 08:33AM


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.