couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Devon Weller <dwel...@devonweller.com>
Subject Re: Sorting items by number of votes
Date Thu, 05 Nov 2009 20:05:58 GMT

That is true.  My app would need to detect the conflict, reload the  
document, add the vote to the array again and re-try the update.  I  
don't imagine enough collisions will occur in my app that this will be  
a problem.  And I believe it will make my views a lot easier to deal  
with.

- Devon



On Nov 5, 2009, at 1:57 PM, Nathan Stott wrote:

> If you put your votes in array belonging to the resource document,  
> you will
> run into problems with conflicts if voting occurs near  
> simultaneously on the
> same resource.
>
> On Thu, Nov 5, 2009 at 1:51 PM, Devon Weller  
> <dweller@devonweller.com>wrote:
>
>>
>> Thanks Nathan, Daniel and others.  Those are some good suggestions  
>> and
>> workarounds.
>>
>> I think I may need to rethink my design and just put the votes in  
>> an array
>> belonging to the resource document.
>>
>>
>> As for the aggregate sum example in the wiki, I still think it  
>> might be
>> broken.  I'm starting another thread with details about that in a  
>> separate
>> email.
>>
>> - Devon
>>

Mime
View raw message