Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 44145 invoked from network); 5 Aug 2010 04:36:44 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Aug 2010 04:36:44 -0000 Received: (qmail 95765 invoked by uid 500); 5 Aug 2010 04:36:43 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 95131 invoked by uid 500); 5 Aug 2010 04:36:39 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 95123 invoked by uid 99); 5 Aug 2010 04:36:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Aug 2010 04:36:38 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of aun.panop@gmail.com designates 74.125.82.42 as permitted sender) Received: from [74.125.82.42] (HELO mail-ww0-f42.google.com) (74.125.82.42) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Aug 2010 04:36:30 +0000 Received: by wwf26 with SMTP id 26so3343892wwf.5 for ; Wed, 04 Aug 2010 21:36:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=JqK6CZpJF2UTuifHyeO10E624S5jkdNv8AzAw7ZMUmI=; b=PGsizAhHQsxNz/VPOeqSr8YhYr1wxi3PbK7QWIIbVYR7+mP5NO0uOsYZBHtidNvsSy d/fsRaOgrSBVNRuQfzcbYrQlJYClGDUiyAhOllbgA5qjneVyob8xGz7oVbFsVB0JM05h 4HGdjeH3hBo8JulRpfOeDeBv7cLl2Teh/F5O4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=gQGqBCWHr6w2i19UboBUBP7kpuhlIQqbzeQH86ETBaAlG3vFR6/svMd7ht5qOVGBXA 7tI34DhQLOsCaDWftcvEIWL7Mf6IrWh4ilc2otPjkD/rqAbuiHP3p3awqPmUQqfImS9p g03gEJEXF98k6y+JuBz/+SotXg/d9tZau7K+Q= MIME-Version: 1.0 Received: by 10.216.26.139 with SMTP id c11mr2911880wea.6.1280982970399; Wed, 04 Aug 2010 21:36:10 -0700 (PDT) Received: by 10.216.22.205 with HTTP; Wed, 4 Aug 2010 21:36:10 -0700 (PDT) Date: Thu, 5 Aug 2010 11:36:10 +0700 Message-ID: Subject: Which is the better way to query From: "Panop S." To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=00504502c5e5e9fb33048d0c16eb X-Virus-Checked: Checked by ClamAV on apache.org --00504502c5e5e9fb33048d0c16eb Content-Type: text/plain; charset=ISO-8859-1 Hi, My system have document like this id = 1 nickname = A id = 2 parent id = 1 id = 3 parent id = 1 id = 4 parent id = 1 Now I use map function to emit ( nickname, doc) so the request come from the key of nickname and I make another request to get all child which has (id = parent id ). Would like to get suggestion on this is the correct way ? Is it possible to make this by just one request with nickname request? Bests, Aun. --00504502c5e5e9fb33048d0c16eb--