Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 73083 invoked from network); 26 Apr 2010 13:22:29 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Apr 2010 13:22:29 -0000 Received: (qmail 94795 invoked by uid 500); 26 Apr 2010 13:22:28 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 94743 invoked by uid 500); 26 Apr 2010 13:22:28 -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 94735 invoked by uid 99); 26 Apr 2010 13:22:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Apr 2010 13:22:28 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of alexander.uvarov@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, 26 Apr 2010 13:22:18 +0000 Received: by wyb29 with SMTP id 29so707616wyb.11 for ; Mon, 26 Apr 2010 06:21:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=uNM3fTEhALfc3o6+xxmr/2tPIHKniRf08V3zvCQnlHM=; b=u1e5WFOH1PPT4eBhS18pFnmOKLeTrtCU9B3BAiN3ABHi23eL0bhvMivT1z9F5cdbu3 +0ijDHUrxuhQ8uCl6VaxGkRGTAsPu9AqFw581uFtqYcJXCNOrnHJzaipwnL0NQRLH8rV C0Gj6TLBARTTW1Frs0XQbFU6zxoHXIF4CzamU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=oi/fp3d2AePc8YwqBZdFQEcgY2ppAlEMcr4e9+H66DsQhNcMnqOEyPhmMPv4U9K3gq ngNpFuedKiAbN751pYNECvicBkqCe2LGxqIeweS4rWYXks7/swbx5Z0qhe3/A06rVjIF 09GQIV8J8finuUckyshPBEWrL2QFwo//1VifI= Received: by 10.216.184.83 with SMTP id r61mr1209196wem.34.1272288118580; Mon, 26 Apr 2010 06:21:58 -0700 (PDT) Received: from [89.204.83.68] ([89.204.83.68]) by mx.google.com with ESMTPS id t27sm341849wbc.23.2010.04.26.06.21.56 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 26 Apr 2010 06:21:57 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1078) Subject: Re: Couchdb document size From: Alexander Uvarov In-Reply-To: Date: Mon, 26 Apr 2010 19:21:54 +0600 Content-Transfer-Encoding: 7bit Message-Id: <5F20F813-F1F5-4786-97F9-3416C1468B5B@gmail.com> References: To: user@couchdb.apache.org X-Mailer: Apple Mail (2.1078) X-Virus-Checked: Checked by ClamAV on apache.org curl -I -X HEAD "http://localhost:5984/dbname/your_doc_id" Content-Length: 70 But I could be wrong. On 26.04.2010, at 19:05, Ronen Narkis wrote: > Hello everyone, iv been trying to figure out how to get the byte size of a > document without GETing the document first, iv already tried to create a > view and use something like JSON.stringify(doc).length > however this approach is quite limiting, is there a better way to do this? > > Thanks! > Ronen