Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 92878 invoked from network); 4 Dec 2009 09:46:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Dec 2009 09:46:52 -0000 Received: (qmail 34049 invoked by uid 500); 4 Dec 2009 09:46:50 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 34017 invoked by uid 500); 4 Dec 2009 09:46:50 -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 34007 invoked by uid 99); 4 Dec 2009 09:46:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Dec 2009 09:46:50 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of paulogiann.couchdb@gmail.com designates 209.85.217.211 as permitted sender) Received: from [209.85.217.211] (HELO mail-gx0-f211.google.com) (209.85.217.211) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Dec 2009 09:46:48 +0000 Received: by gxk3 with SMTP id 3so707351gxk.15 for ; Fri, 04 Dec 2009 01:46:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=oNaipUuniPHiUi4rQrTDrHObA/WYNDcuDYRjVk9XCVk=; b=ll53Qo1jcpZJBy1VvOi/4R0mFbZv/+kmx0c93LuFy76rka/Eu3o7ie1oPJMHlomcWB jGx1kKivfQ0dw9rCPZ25arXwoqnv5277hVhHnb1uy9UDkPywkLroCOmWuLdGumxwvkup r8/q4XBSi+IXwkSQAJuI1F2bSaeo+L+7vW6cE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=wV5SvrUisgOApbJLg3bARpVGRg0te7y2BhencfnmfnTG1QQNVxZV8KY4INTaeEiyN4 Qc2YD5hHoA9hO/xgT8qP7+vefDdaR1LjzbSyTvLS4ZF90BYBM4Rp0SFhwPuK7U0WmNxu HwXRgY7SXB6C6E4NA8OTT/e0W7eVX31lGru+o= MIME-Version: 1.0 Received: by 10.150.251.10 with SMTP id y10mr5072473ybh.49.1259919987053; Fri, 04 Dec 2009 01:46:27 -0800 (PST) In-Reply-To: References: <4B18D3B2.3020108@gmail.com> Date: Fri, 4 Dec 2009 11:46:26 +0200 Message-ID: <3a3e8270912040146u4ce88db8xbda3299dca3ead8d@mail.gmail.com> Subject: Re: Get Document Size From: Andreas Pavlogiannis To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=000e0cd724ba4615200479e3fbf9 --000e0cd724ba4615200479e3fbf9 Content-Type: text/plain; charset=ISO-8859-1 That might work for a single document, but I 'd rather calculate the size inside a map function so that I can then use a reduce to sum up. 2009/12/4 Sebastian Cohnen > what about doing a HEAD request and look for Content-Length? > > {~} I curl -I http://localhost:5984/test/DOCUMENT-ID > HTTP/1.1 200 OK > Server: CouchDB/0.11.0b60a6b3e7-git (Erlang OTP/R13B) > Etag: "1-1a6c2a80b8615b2399ff5ba66d18534d" > Date: Fri, 04 Dec 2009 09:38:34 GMT > Content-Type: text/plain;charset=utf-8 > Content-Length: 169 > Cache-Control: must-revalidate > > > On 04.12.2009, at 10:17, Andreas Pavlogiannis wrote: > > > Hello, > > > > Is there a uniform way to obtain a document's size (attachments' size > included) ? > > > > Thanks, Andreas > > --000e0cd724ba4615200479e3fbf9--