in reply to Re^2: Tracking down memory leaks
in thread Tracking down memory leaks

Create tied hashes for caching that information so that I don't have to hit the database everytime I need the id of some frequenly used term.

And you're wondering why your memory usage is increasing? Why don't you try a run with caching disabled and see if that fixes your problem.