[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Multiple Server Controls

M Jose, Vishal wrote:

So you are saying without using PAGE controls, get all the results
even though they are in thousands(by setting the size limit as ZERO,
unlimited).Will that be a proper approach to the problem?

First of all, Kurt is correct, I was thinking of the LDAPSync control, not DirSync. But the same advice applies.

Secondly, yes, just set the sizelimit to zero. Since LDAP runs over a stream protocol (TCP) and that protocol does its own flow control, there is never any actual need to use the Paging control, the client can always control how much of the data it wants to read and at what pace. For situations like replication where you want the complete result set anyway, the Paging control only serves to make the whole process less efficient.

On Sun, 20 Mar 2005 04:20:48 -0800, Howard Chu <hyc@symas.com> wrote:

Those two controls are not compatible with each other, only one of the
two will take effect.

In general, the Paged Results control is a waste of effort and should
not be used.

 -- Howard Chu
 Chief Architect, Symas Corp.       Director, Highland Sun
 http://www.symas.com               http://highlandsun.com/hyc
 Symas: Premier OpenSource Development and Support