TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Transactions in MongoDB

15 pointsby jsralmost 14 years ago

1 comment

dolinskyalmost 14 years ago
While I enjoy using MongoDB where appropriate, this example provided is somewhat of a straw man fallacy because it's missing the part of the transaction which decrements from the total number of each item available.<p>Edit: To address the issue of the total number decrement needed above, there is the two-phase commit, but then you're getting into something that isn't a transaction, by definition, and is more along the lines of eventual consistency.<p><a href="http://www.mongodb.org/display/DOCS/two-phase+commit" rel="nofollow">http://www.mongodb.org/display/DOCS/two-phase+commit</a>