Re: [pear-webmaster] new search, some tips

From: Date: Thu, 14 Jul 2005 15:56:34 +0000
Subject: Re: [pear-webmaster] new search, some tips
References: 1 2 3 4  Groups: php.pear.webmaster 
Request: Send a blank email to pear-webmaster+get-4217@lists.php.net to get a copy of this message
On Thu, 14 Jul 2005 17:41:30 +0200 mj@php.net (Martin Jansen) wrote: > On Thu Jul 14, 2005 at 05:3209PM +0200, Pierre-Alain Joye wrote: > > No usage of getAll, but query(). getResult will use fetch() and > > returns a row, exactly as it works now but s/foreach/while/. > > What would be the advantage? getAll already fetches the rows, one loop. You loop again on the page, 2nd loop. The memory used by PHP with getAll will always match the size of the result array. While fetching only a row, it's the size of one row. And no it's not negligeable in pearweb :) --Pierre

« previous php.pear.webmaster (#4217) next »