Why am I on this list. I don't even remotely understand what this is about! Please could someone remove me.
Best regards,
Kevin Aires
European Lead
IBM Digital Video Services
ai...@us.ibm.com (Based in UK)
+44 (0) 7771 366388
Best regards,
Kevin Aires
European Lead
IBM Digital Video Services
ai...@us.ibm.com (Based in UK)
+44 (0) 7771 366388
-----Chris Ridd <chrisr...@mac.com> wrote: -----
To: perl-ldap@perl.org
From: Chris Ridd <chrisr...@mac.com>
Date: 03/08/2017 17:00
Subject: Searching without retaining all results
From: Chris Ridd <chrisr...@mac.com>
Date: 03/08/2017 17:00
Subject: Searching without retaining all results
I had a requirement to extract 30+ million entries from an ldap server, and naively thought that using callbacks would be useful.
While they are useful in getting me each result quickly, I didn't realise that Search still captures each result in self. So after reading several million entries Linux's oom killer kindly killed a) the ldap server and then b) my script to try and get back some memory!
I ended up patching Search.pm to avoid capturing each result when using callbacks. Is there a better way to do this?
Cheers,
Chris
While they are useful in getting me each result quickly, I didn't realise that Search still captures each result in self. So after reading several million entries Linux's oom killer kindly killed a) the ldap server and then b) my script to try and get back some memory!
I ended up patching Search.pm to avoid capturing each result when using callbacks. Is there a better way to do this?
Cheers,
Chris