couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Lehnardt <...@apache.org>
Subject Re: Better way to count attachments?
Date Sat, 17 Jan 2009 12:54:18 GMT

On 17 Jan 2009, at 03:12, Chris Anderson wrote:

> On Fri, Jan 16, 2009 at 4:59 PM, Jeff Hinrichs - DM&T
> <dundeemt@gmail.com> wrote:
>> On Fri, Jan 16, 2009 at 6:51 PM, Bradford Winfrey <bradswinfrey@yahoo.com 
>> >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
>


Mime
View raw message