couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
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:

   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.

View raw message