Re: [CDBI] C::DBI Memory usage
Matt S Trout <dbix-class-uY5y5/[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.class-dbi |
|---|---|
| Message-ID | <[email protected]> |
Aaron Trevena wrote:
> Hi All,
>
> I'm working on scheduling daemon in perl, it uses C::DBI to handle
> DB/Object Persistence, etc as you'd expect.
>
> Unfortunately I'm having issues with the ammount of memory it uses
> after 24 hours of running.
Oh, hell. Does it do a lot of queries that are different every time and
almost never lose its database connection? If so, prepare_cached may be
the culprit - try $dbh->{CachedKids} = {}; and see if the memory usage
comes back down.