| View previous topic :: View next topic |
| Author |
Message |
soladon13
Joined: 08 Aug 2007 Posts: 4
|
Posted: Fri Jul 18, 2008 1:24 pm Post subject: nextId() and ON DUPLICATE KEY UPDATE |
|
|
Hello,
I am using ON DUPLICATE KEY UPDATE to insert/update rows in a large table. The problem is most times it is the UPDATE part that is executed, meaning that the nextId() that was called earlier incremented the sequence for no reason.
The thing is that updates happen often and the id of the sequence would get huge(!) in little time compared to the actual number of entries of the table.
Any ideas please?
Thank you, |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|