Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 14356 invoked from network); 13 Mar 2009 12:00:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Mar 2009 12:00:59 -0000 Received: (qmail 58188 invoked by uid 500); 13 Mar 2009 12:00:56 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 58154 invoked by uid 500); 13 Mar 2009 12:00:56 -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 58143 invoked by uid 99); 13 Mar 2009 12:00:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Mar 2009 05:00:56 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of anandology@gmail.com designates 209.85.142.188 as permitted sender) Received: from [209.85.142.188] (HELO ti-out-0910.google.com) (209.85.142.188) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Mar 2009 12:00:48 +0000 Received: by ti-out-0910.google.com with SMTP id a1so268080tib.3 for ; Fri, 13 Mar 2009 04:59:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=E8ilQcPLlh98Y0/96jnDiS3sODthn1sX1WlKiDNqqvA=; b=iOa3B2knbuBYzZKlIswOcfZnQYwjsPmGmfyYnLilEyd4PHu71QKeB6GSREdaPyDmJf C2LFbFNOnRjQPYi9lTDROS4N/hgiL1L1T9u1vduywMd3pvGz0Ks6pUGUTYRJpAoPlHd/ bT7ZwBSeVyb6a7DonFIgZBZ8LiGVoftKO8T+I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=F9w50uFHvS/UC6OxyN9S+HW/Pjo6veFLbU9zp6444gZ3nv6TlizgJ9WvndvB/X7Ksq 9+GkvtrsWxgI8+8LX3f4g2cKTZ0XyU4ZOh7V69dV8DoqJ5loV35WBqhO2XSwr++ffs4m NP7YsEjhPzfTSTaTzy0u/0/PbV3o7s8svOce4= MIME-Version: 1.0 Received: by 10.110.62.1 with SMTP id k1mr1835890tia.38.1236945597713; Fri, 13 Mar 2009 04:59:57 -0700 (PDT) Date: Fri, 13 Mar 2009 17:29:57 +0530 Message-ID: <41139fcb0903130459td4f3d40ic4f418d7842c14ba@mail.gmail.com> Subject: equivalent of JOINs in couchdb? From: Anand Chitipothu To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, I have been reading about couchdb and trying understand how it works. One thing that i'm unable to understand is how to do equivalent of JOINs in couchdb. Let me explain what I need with an example. I want to store books in couchdb with each book having title, authors, isbn, lccn, publisher and many other fields. I would like to be able to query the system for any combination of these. some thing like: type="book" and publisher="foo" and author="bar type="book" and isbn="1234567890" How to do this in couchdb? I wouldn't want to create a temporary view for running each query as it is very expensive. Thanks, Anand