Re: Speed

From: Date: Wed, 11 Jan 2006 08:04:24 +0000
Subject: Re: Speed
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-228452@lists.php.net to get a copy of this message
Assume that I save data about an object and it has 10.000 observations of the object stored in a MySQL database. I want calculate the average value of a column, is it faster done by using PHP on the result array or using the MySQL function to do that?
MySQL. You don't have to transfer all 10,000 records to PHP for one thing. -philip

« previous php.general (#228452) next »