Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 75568 invoked from network); 28 Jul 2006 14:24:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Jul 2006 14:24:47 -0000 Received: (qmail 68576 invoked by uid 500); 28 Jul 2006 14:24:46 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 68540 invoked by uid 500); 28 Jul 2006 14:24:46 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 68529 invoked by uid 99); 28 Jul 2006 14:24:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jul 2006 07:24:46 -0700 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of aok123@bellsouth.net designates 205.152.59.66 as permitted sender) Received: from [205.152.59.66] (HELO imf18aec.mail.bellsouth.net) (205.152.59.66) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jul 2006 07:24:46 -0700 Received: from ibm61aec.bellsouth.net ([65.80.200.112]) by imf18aec.mail.bellsouth.net with ESMTP id <20060728142425.VFZF7191.imf18aec.mail.bellsouth.net@ibm61aec.bellsouth.net> for ; Fri, 28 Jul 2006 10:24:25 -0400 Received: from [172.16.1.7] (really [65.80.200.112]) by ibm61aec.bellsouth.net with ESMTP id <20060728142424.KZAM11609.ibm61aec.bellsouth.net@[172.16.1.7]> for ; Fri, 28 Jul 2006 10:24:24 -0400 Message-ID: <44CA1E6E.3090305@bellsouth.net> Date: Fri, 28 Jul 2006 10:25:50 -0400 From: Alex Karasulu User-Agent: Thunderbird 1.5.0.4 (X11/20060615) MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: LDAP codec streaming References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Norbet Reilly wrote: > Hi everyone, > > Thanks for my inclusion to the project as a "mentored commiter" (I > didn't mind "proby" myself ;-), it's an honour to be involved with > such an exciting opensource project. Well it's just good enough to call you a committer along with the others. We just want you to be careful in the beginning. > I was just wanting to ask one of the ADS gurus what happens exactly at > the LDAP protocol level when an extremely large result set is returned > by ADS for an LDAP search(). Is a client able to start retreiving > results via their NamingEnumeration before the server has completed > its search? I'm hoping there is some sort of "chunking" at the > protocol level so that batches of results are streamed to the client > as they become available, rather then the waiting for the entire > result set to be available first. Is this the case? Yes and no :). There is no chunking of an individual PDU sent back. Meaning each SearchEntryResponse prepared then sent out the door. If an entry you're returning has a 1 mb jpeg in it then this will be used to prepare a response and return it rather than streaming out the jpeg. Old incarnations of MINA used to allow us to do this but it was complicated. For the search operation, we do not collect all entries before sending a response. That would kill the server. ApacheDS will pull out and send a result entry to you one at a time. MINA may lag a little bit and some results may actually sit a while before going out the door. But for all practical purposes we pull from the db and pump out results one by one. The way it works is a bit complicated and will take some time to discuss. I can go into it if enough people are interested and willing to document it :) after I describe how she does this. Alex