in reply to Re: Re: Memory leak with DBD::Sybase ?
in thread Memory leak with DBD::Sybase ?
If s?he's issuing a $dbh->disconnect; at the end of the say.. subroutine that does the inserts, it should commit the transactions. Issuing a $dbh->finish; (or was it $sth->finish; ?) before the disconnect may commit the records.
It's $sth->finish;.
Commiting the transaction wouldn't free the memory to the OS. It would go back into a pool that perl can use later. Fortunatly, on any OS with a sane VM implementation, the pages for that storage space would be swaped to the hard disk until perl needs to use them again.
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
Note: All code is untested, unless otherwise stated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Memory leak with DBD::Sybase ?
by one4k4 (Hermit) on Jun 05, 2003 at 18:12 UTC | |
|
Re: Re: Re: Re: Memory leak with DBD::Sybase ?
by Anonymous Monk on Jun 05, 2003 at 18:27 UTC | |
by one4k4 (Hermit) on Jun 05, 2003 at 22:44 UTC | |
by mpeppler (Vicar) on Jun 06, 2003 at 06:10 UTC |