Re: [PHP-DEV] UPDATED: Patch to fix BUG: ldap_search: sizelimit exceeded, no result.. From: jtaskine <email protected>
Date: 07/20/00

On Thu, 20 Jul 2000, Stig Venaas wrote:

>On Wed, Jul 19, 2000 at 06:46:23PM +0300, jtaskine <email protected> wrote:
>> On Mon, 17 Jul 2000 jtaskine <email protected> wrote:
>>
>> >Included patch fixes this problem:
>> >
>> >When doing ldap-searches which extend beyond the (server) sizelimit, there
>> >were no partial results (for example 50 first) returned at all.
>> >
>> >And some of the compile warnings are nuked with this too. I hope I got
>> >this right..

>Do we need that extra argument? Can't we just return the data and set the
>error? I don't want that argument unless there's a good reason. Thanks for
>fixing the problem though.

I give a real life example:

If I do a search (*a) into a server which has sizelimit not set or it's
set rather high (1000 or so) i'll get about 899 entries as result.
And that takes rather long to run (and eat's server's resources).
(And I do not make such searches..just stupid users..=)

BUT now that I am able to set the sizelimit in the client, I get only 50
entries which is very quick run. And doesn't (over)load the server at all.

Sometimes you cannot go to the server and change that sizelimit setting
there to be lower (or higher).

So it's a speed/performance issue. Is this a good reason ? =)
There is also another argument, timelimit. But I didn't find any use for
it. Yet.

--Jani

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>