What is the difference between a SELECT COUNT(*) FROM tabla;
and SELECT SQL_CALC_FOUND_ROWS * FROM tabla; SELECT FOUND_ROWS();
?
According to the API it is faster SQL_CALC_FOUND_ROWS but according to other comments on the Internet is not like that.
They both count the number of records, so where is the difference and why is it used so much SQL_CALC_FOUND_ROWS
and then another query to FOUND_ROWS()
to get the number of records in a table?