Searching without retaining all results

Chris Ridd <[email protected]> Thu, 03 Aug 2017 16:59:39 +0100
Newsgroups gmane.comp.lang.perl.modules.ldap
Message-ID <[email protected]>
I had a requirement to extract 30+ million entries from an ldap server, and n=
aively thought that using callbacks would be useful.

While they are useful in getting me each result quickly, I didn't realise th=
at Search still captures each result in self. So after reading several milli=
on entries Linux's oom killer kindly killed a) the ldap server and then b) m=
y script to try and get back some memory!

I ended up patching Search.pm to avoid capturing each result when using call=
backs. Is there a better way to do this?

Cheers,

Chris=