Hi,
Is it usually preferable to do several SQL counts on a related set of data or to pull all the data into the PHP app with 1 SQL statement and do the counts in php?
I need to peform 4 counts on a similar set of data. I would probably have to read about 100,000 rows into memory to count the data in PHP.
I'm guessing it's better to just do several SQL statements --all counts--, but maybe someone has some experience on the subject. Perhaps, it's possible to do all the counts in one statement, but I haven't figured out a way.
-r23