Re: DB_DataObject eats all my memory
| From: | Sven Lankes | Date: | Tue, 26 Oct 2004 20:46:47 +0000 |
| Subject: | Re: DB_DataObject eats all my memory | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15138@lists.php.net to get a copy of this message | ||
On Tue, Oct 26, 2004 at 11:38:49PM +0800, Alan Knowles wrote:
> That said, I have used it in a number of huge data conversion
> situations, without killing memory.
Maybe that is something that should be noted somewhere in the manual?
> basically if you run ->free() - dont expect any 'open' dataobject to
> behave nicely.. - it has to do a wipe of the numrows cache in a DB::
> global. - (nasty hack) - this may be fixable in a better way, but I've
> not had time to look at it.
Uhm - bad news.
I have now "hacked" around the problem by using pg_*-calls in the "outer"
loop of my script and using DataObjects with free() calls inside it.
Very nasty and inconsistent but at least memory consumption is back to an
expected level now.
Thanks for your help.
> Regards
> Alan
--
mfg sven lankes
megabit informationstechnik