couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Update of "Transaction model use cases" by AndriusJuozapaitis
Date Thu, 09 Apr 2009 12:17:48 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The following page has been changed by AndriusJuozapaitis:
http://wiki.apache.org/couchdb/Transaction_model_use_cases

------------------------------------------------------------------------------
   2. the same category at the same time is being updated by user B, by uploading an updated
image to it
  
  '''''You shouldn't have a categories count that gets manually updates. Instead, create a
"products by category view" and use a reduction to count the number of each category. -Damien'''''
+ 
  '''''I do realize that I can rework the model in this specific scenario. Maybe it's a bad
example as is... -Andrius'''''
  
  If the operations happen in this exact order (1,2), user B will get a concurrent modification
warning, and will have to reapply his changes.

Mime
View raw message