Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 62629 invoked from network); 17 Jan 2009 12:55:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Jan 2009 12:55:26 -0000 Received: (qmail 54631 invoked by uid 500); 17 Jan 2009 12:55:24 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 54603 invoked by uid 500); 17 Jan 2009 12:55:24 -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 54592 invoked by uid 99); 17 Jan 2009 12:55:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Jan 2009 04:55:24 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.97.50.139] (HELO jan.prima.de) (83.97.50.139) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Jan 2009 12:55:15 +0000 Received: from [192.168.1.100] (f053003248.adsl.alicedsl.de [::ffff:78.53.3.248]) (AUTH: LOGIN jan, TLS: TLSv1/SSLv3,128bits,AES128-SHA) by jan.prima.de with esmtp; Sat, 17 Jan 2009 12:54:50 +0000 Message-Id: From: Jan Lehnardt To: user@couchdb.apache.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: Better way to count attachments? Date: Sat, 17 Jan 2009 13:54:18 +0100 References: <630444.43771.qm@web57613.mail.re1.yahoo.com> <5aaed53f0901161659m6fc46358i9b18603a15f1deef@mail.gmail.com> X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org On 17 Jan 2009, at 03:12, Chris Anderson wrote: > On Fri, Jan 16, 2009 at 4:59 PM, Jeff Hinrichs - DM&T > wrote: >> On Fri, Jan 16, 2009 at 6:51 PM, Bradford Winfrey > >wrote: >> >>> I thought spidermonkey provided a __count__ method, sorry to >>> justtjink >>> aloud, out and about at the moment > > is doc._attachments.length reliable? yes, for arrays, we have an object here :) Cheers Jan -- > > >>> >>> I had assumed so to, but gave up after 30 minutes or so of looking/ >>> banging >> -- figured I'd post what I have working and see if someone knew >> better. >> Thanks and Have a good time. ;) >> >> -jeff >> > > > > -- > Chris Anderson > http://jchris.mfdz.com >