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.

MongoDB 4.0 will add support for multi-document transactions

82 pointsby cyberfartalmost 7 years ago

9 comments

arghwhatalmost 7 years ago
&gt; &quot;... making it the only database to combine the speed, flexibility, and power of the document model with ACID guarantees.&quot;<p>PostgreSQL with JSONB columns seems to have beat them to the race by quite a wide margin. MySQL too, for that matter.
评论 #17397255 未加载
评论 #17398723 未加载
koolbaalmost 7 years ago
Following through the blog to the actual docs: <a href="https:&#x2F;&#x2F;docs.mongodb.com&#x2F;master&#x2F;release-notes&#x2F;4.0&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.mongodb.com&#x2F;master&#x2F;release-notes&#x2F;4.0&#x2F;</a><p>&gt; By default, multi-document transactions wait 5 milliseconds to acquire locks required by the operations in the transaction. If the transaction cannot acquire its required locks with the 5 milliseconds, the transaction aborts.<p>Automatic cancellation rather than actual deadlock detection is going to be one hell of a footgun.<p>I&#x27;d argue this is a double barreled footgun as most usage of MongoDB is from garbage collected languages. One wrongly time GC and your transaction is dead.
评论 #17393845 未加载
评论 #17393357 未加载
评论 #17393292 未加载
评论 #17393608 未加载
ngrillyalmost 7 years ago
Now we&#x27;re waiting for Aphyr to test this works as intended :-)
mlthoughts2018almost 7 years ago
MongoDB represents to me a very good way to build a product. There has always been so much derisive criticism about MongoDB opting to prioritize convenience of customer workflows above all else, and to go back and add best practices, basic data safety, etc., on a piecemeal basis after the fact. Customers are surprisingly willing to put up with problems as long as usability and user experience is high, and they will wait for other features. Meanwhile, plenty of other database projects may start out with a more deliberate focus on classical database safety and guarantees, yet hardly build any customer base.<p>Even though I may like e.g. Postgres features more, there is still something to be respected about how MongoDB has operated, and the constant vitriol about their chosen priorities has always sounded hollow to me, even accounting for stories about data loss, etc.<p>Incidentally, I once had the chance to tour the MongoDB office near Times Square, and boy, I can tell you it is not an office environment for me. Extremely loud, and they even have things like scooter parking slots and signs for “scooter etiquette” for rolling around the office on a scooter.<p>I’m not sure how they are able to focus on any engineering work, but kudos to them for finding a way.
评论 #17393336 未加载
评论 #17393301 未加载
评论 #17393737 未加载
jchwalmost 7 years ago
This seems great, but I think until 4.2 they don&#x27;t plan to have global point-in-time consistency - just per replica set. I wonder how this affects ACID semantics?<p>Also: This is going to be really nice, but I sure hope a major cloud provider starts providing a managed service. It&#x27;s very nice having a managed service like Amazon RDS or Google Cloud SQL.
评论 #17393201 未加载
评论 #17393261 未加载
评论 #17393341 未加载
评论 #17397712 未加载
评论 #17393905 未加载
TomK32almost 7 years ago
Good bye MMAPv1. I like the changes about the date formatting and type conversions. In my current project I shortly had values store both as bigdecimal and float until I moved the calculations app-wards into Ruby.
gremlinsincalmost 7 years ago
Is there really anything Mongo does, that actually makes it worth choosing over postgres or even mysql w&#x2F; jsonb?<p>I mean, I think if I needed to think beyond sql, a graph db like arango or neo might make more sense...
评论 #17397269 未加载
sloankevalmost 7 years ago
Can you use this across collections?
评论 #17393256 未加载
ravenstinealmost 7 years ago
This comes at a perfect time for me, because I&#x27;ve been working on an application running on MongoDB and although I can get away without transactions, they would help significantly.