I know that SQL_CALC_FOUND_ROWS has been deprecated, but I was just wondering if anyone knows why? It was so handy, even if slightly less performant than running the query twice (once with and once without the LIMIT clause).
Dani 5,664 The Queen of DaniWeb Administrator Featured Poster
Recommended Answers
Jump to Post— Salem 6,025There's a detailed writeup of why here.
Jump to Post— pritaeas 2,276I have a feeling that the query optimizer would recognize both as being the same.
All 7 Replies
Salem 6,025 Posting Sage
Dani 5,664 The Queen of DaniWeb Administrator Featured Poster
Dani 5,664 The Queen of DaniWeb Administrator Featured Poster
Dani 5,664 The Queen of DaniWeb Administrator Featured Poster
Dani 5,664 The Queen of DaniWeb Administrator Featured Poster
pritaeas 2,276 Most Valuable Poster Moderator Featured Poster
Dani 5,664 The Queen of DaniWeb Administrator Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.