Welcome Guest, Not a member yet? Register   Sign In
Count how many users there are
#6

[eluser]Glen Swinfield[/eluser]
In terms of processing time? It's negligible unless you are using it thousands of times. Basically a CI num_rows() function calls mysql_num_rows() eventually I would think - or could in fact call count($query->result_array()) anyway. I've never really looked through the DB files to see exactly what goes on, but generally the fewer function calls the quicker it is.

But don't get too hung up on it because it will be the database itself that slows your apps down, not a few extra function calls.


Messages In This Thread
Count how many users there are - by El Forum - 07-19-2007, 08:20 AM
Count how many users there are - by El Forum - 07-19-2007, 08:36 AM
Count how many users there are - by El Forum - 07-19-2007, 09:11 AM
Count how many users there are - by El Forum - 07-19-2007, 09:43 AM
Count how many users there are - by El Forum - 07-19-2007, 09:50 AM
Count how many users there are - by El Forum - 07-19-2007, 10:37 AM
Count how many users there are - by El Forum - 08-02-2007, 06:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB