On Mar 18, 10:09 am, Perrin Harkins <[email protected]> wrote: > On Wed, Mar 18, 2009 at 1:02 PM, Roch Delsalle <[email protected]> wrote: > > yes but if for instance I'm building dynamic SQL queries at somes point the > > memory usage will keep growing even if the data is released. > > How would that happen? It just drops old data and replaces it with > your new stuff. It doesn't increase the overall size.
It doesn't try very hard to reuse memory when it hasn't allocated as much as you've given it. Trond's put in a change recently that will allow it to take a quick pass to look for expired objects before allocating or hitting the LRU. The aggressiveness of this should also be configurable (working through prerequisites to that).
