Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 72484 invoked from network); 5 Apr 2010 12:15:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Apr 2010 12:15:17 -0000 Received: (qmail 86128 invoked by uid 500); 5 Apr 2010 12:15:15 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 86099 invoked by uid 500); 5 Apr 2010 12:15:15 -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 86091 invoked by uid 99); 5 Apr 2010 12:15:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Apr 2010 12:15:15 +0000 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=AWL,FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of djassper@gmail.com designates 74.125.82.180 as permitted sender) Received: from [74.125.82.180] (HELO mail-wy0-f180.google.com) (74.125.82.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Apr 2010 12:15:09 +0000 Received: by wya21 with SMTP id 21so1555248wya.11 for ; Mon, 05 Apr 2010 05:14:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:date:received :message-id:subject:from:to:content-type; bh=pdq5FBhSo0M+5sVaN/GKIPAiaMwxWSpn/BgZP75VNBs=; b=pp9YpdDtiUR2Vq+p8STY2c9k33/+pY9aM3Rw0n48359yuQlpPJUVIMmuHbKxVUfvyb Z6iP/cqbDE5d0fV5xsYQYWbmbdnBJzafsP6xonOZi4ouTjC8jteVP6s4XQK1bl14DihT OHPvUJHNHlPj/qriTRmVyGbEAQKCYCFLHa0g4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:content-type; b=ffot9+0RcBv4MsL9Wkw/n2lDSE29bZtsmPKefNXMPxXCdigTAlzLUS1RjL0RrNTK++ 6pWVP96w6eE5fCp4ivTIylu9SVCDFlvISh6waiBH7rKlEF+6/cuSpz3+oWibXGWY6M3B Wa3QN93g7b67LLawnZRNgBH1xE1hd5y9Vjjgc= MIME-Version: 1.0 Received: by 10.216.165.143 with HTTP; Mon, 5 Apr 2010 05:14:48 -0700 (PDT) Reply-To: djassper@gmail.com Date: Mon, 5 Apr 2010 14:14:48 +0200 Received: by 10.216.86.196 with SMTP id w46mr3229701wee.201.1270469688075; Mon, 05 Apr 2010 05:14:48 -0700 (PDT) Message-ID: Subject: delete Docs From: Fred Lemasson To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 I everyone I could use some advice on CouchDB "Best Pratice" for deleting documents. Lets say I know the id of some docs I want to delete, I still have to retreive their _rev number before sending the DELETE. So, do I really have to read(GET request) an entire document just to get its _rev or should I create a _view to get _id + _rev pairs ? Both ways seem non ideal to me, because why loading an entire document just to read its _rev (it might be a really big doc and u might have a lot of them) and why create a _view that will suffer from indexation process, reading a single value is supposed to be quick ... Or may be there is a way to get "just" the _rev from some doc _id that I don't know about ? Feel free to show me the way ... and let me know how u proceed ... Fred