PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
nextId() and ON DUPLICATE KEY UPDATE

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Database
View previous topic :: View next topic  
Author Message
soladon13



Joined: 08 Aug 2007
Posts: 4

PostPosted: Fri Jul 18, 2008 1:24 pm    Post subject: nextId() and ON DUPLICATE KEY UPDATE Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Database All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software