Can I do transactions and locks in CouchDB?

Posted by damian on Stack Overflow See other posts from Stack Overflow or by damian
Published on 2008-11-18T18:46:24Z Indexed on 2010/04/06 4:33 UTC
Read the original article Hit count: 277

Filed under:
|
|

I need to do transactions (begin, commit or rollback), locks (select for update). How can I do it in a document model db?

Edit:

The case is this:

  • I want to run an auctions site.
  • And I think how to direct purchase as well.
  • In a direct purchase I have to decrement the quantity field in the item record, but only if the quantity is greater than zero. That is why I need locks and transactions.
  • I don't know how to address that without locks and/or transactions.

Can I solve this with CouchDB?

© Stack Overflow or respective owner

Related posts about couchdb

Related posts about database