MySQL Forums
Forum List  »  Performance

Re: UPDATE - Increment Speed Question
Posted by: Sean Nolan
Date: April 04, 2005 03:40PM

I'm pretty certain that tip is saying that it is better to use a separate table to keep a count of things that you often need to get a count of - instead of running SELECT COUNT(*) ... queries.

So I don't think that it has anything to do with how fast that specific UPDATE syntax is, note that the tip starts "If you very often need to calculate results such as counts based on information from a lot of rows, it's probably much better to introduce a new table and update the counter in real time." The UPDATE you are referring to is then just an example, of how to do this, not an example of how to write a faster UPDATE statement.

Sean

Options: ReplyQuote


Subject
Views
Written By
Posted
11396
dbv
April 04, 2005 09:44AM
Re: UPDATE - Increment Speed Question
3806
April 04, 2005 03:40PM
3331
April 05, 2005 01:36AM
2796
dbv
April 05, 2005 09:23AM
2724
April 10, 2005 12:00PM
2595
dbv
April 11, 2005 05:24PM


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.