Home » Performance » MySQL » Using SQL_CALC_FOUND_ROWS
Using SQL_CALC_FOUND_ROWS [message #18] Sat, 12 August 2006 07:25 Go to previous message
elektronaut  is currently offline elektronaut
Messages: 9
Registered: August 2006
Location: Switzerland - Zürich - W...
Junior Member

I found this very nice feature SQL_CALC_FOUND_ROWS to use if you want to get an idea of how many records were found, even though you're using limit. I was delighted to find this. Before I was using a count query which was always very annoying to build and it went against all my instincts;)

Is there a catch? Any reason why not to use this feature. It does slow down the query some, but i guess that's to be expected.

Thanks for any comments on this.


Minds are like parachutes - they work best when open.

Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Using Indexes to increase sort performance
Next Topic:1-n distinct/group by optimization
Goto Forum:

  


Current Time: Fri Jul 10 01:08:22 EDT 2009

Total time taken to generate the page: 0.02109 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 2.7.7.
Copyright ©2001-2007 FUD Forum Bulletin Board Software

MySQL is a trademark of Sun Microsystems.
InnoDB is a trademark of Oracle Corp.

Percona Performance Forums are a service of Percona, Inc.
Not affiliated with Sun Microsystems or Oracle Corp.