Skip to main content
fixed grammer
Source Link
Justin Jenkins
  • 26.9k
  • 6
  • 69
  • 1.3k

I don't really think any testing is needed.

Doing the COUNT in the SQL query

  1. Sends only one row of data back the to client (instead of every row)

  2. Lets SQL do the count for you which is likely always going to be faster thenthan PHP.

I don't really think any testing is needed.

Doing the COUNT in the SQL query

  1. Sends only one row of data back the to client (instead of every row)

  2. Lets SQL do the count for you which is likely always going to be faster then PHP.

I don't really think any testing is needed.

Doing the COUNT in the SQL query

  1. Sends only one row of data back the to client (instead of every row)

  2. Lets SQL do the count for you which is likely always going to be faster than PHP.

Source Link
Justin Jenkins
  • 26.9k
  • 6
  • 69
  • 1.3k

I don't really think any testing is needed.

Doing the COUNT in the SQL query

  1. Sends only one row of data back the to client (instead of every row)

  2. Lets SQL do the count for you which is likely always going to be faster then PHP.