DB memory issues
| From: | Derek Downey | Date: | Fri, 17 Nov 2006 15:41:15 +0000 |
| Subject: | DB memory issues | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-25861@lists.php.net to get a copy of this message | ||
I have a question about PEAR_DB autoPrepare() and execute(). Currently, I'm
running a script that will insert about 200,000 rows into a mysql database.
However, it reaches my max memory limit allowed on the script (which is set
to 64mb). I have used memory_get_usage() and the memory jumps significantly
after each $dbh->execute() call. Does anyone know of an issue with how DB
handles execute in terms of memory, and if there's a solution?
I know a lot of people are using MDB2 packages, but I have a large
application that I have based on PEAR_DB. If there's no solution, though, I
will have to switch it over if MDB2 doesn't have the same issues.
Thanks for any help,
Derek Downey