News for hackers. Stuff that matters.
Re:MongoDB adds atomic find and modify by delano on Thursday December 31, 2009 @01:44PM (#1024729)
Interesting. In my most recent projects, I've been using MongoDB together with Redis. MongoDB for long term data (like records and reports) and Redis for near-realtime stuff (queuing, request limiters, analytics, and the like). I haven't come across the need for atomic record modification but that isn't to say there aren't useful usecases. I need to think on it a bit more.
Re:MongoDB adds atomic find and modify by old-gregg on Thursday December 31, 2009 @08:41PM (#1025331)
Isn't that defeating the purpose of MondoDB? We're considering switching to it precisely because we're sick of two-tiered approach (MySQL+memcached) and MongoDB promises a built-in near-realtime caching.

Why would I want to lose the power of SQL if I'm not getting anything in return? I thought that "built-in memcached" was what I'd be getting. No?

Re:MongoDB adds atomic find and modify by delano on Saturday January 02, 2010 @04:53PM (#1027722)
Storage and caching are two different problems so it's reasonable to assume two separate solutions.

In this case, MongoDB is a leap ahead of MySQL; Redis is a leap ahead of Memcached. Both solve the core problems very well and include additional freebies (MongoDB's high-performance aggregate functions and Redis' atomic increments and set and list functions).

Re:MongoDB adds atomic find and modify by cloudhead on Friday January 01, 2010 @04:37AM (#1025580)
mongodb doesn't do concurrency very well -- at least not as good as Redis.
Re:MongoDB adds atomic find and modify by old-gregg on Friday January 01, 2010 @12:30PM (#1025939)
I looked up your profile but didn't find any contact info. I am dying to know more about MongoDB limitations and this page isn't helping:

http://www.mongodb.org/display/DOCS/Concurrency

Re:MongoDB adds atomic find and modify by dm_mongodb on Sunday January 03, 2010 @03:13PM (#1029026)
concurrency is much better in the newest versions
Re:MongoDB adds atomic find and modify by dm_mongodb on Thursday December 31, 2009 @01:50PM (#1024741)
Re:MongoDB adds atomic find and modify by jimfl on Thursday December 31, 2009 @12:58PM (#1024629)
I misread "The db.eval() statement provides a way to automically perform several operations at once; however, its use for this is not recommended as this eval() atomicity will not be supported for certain cases in sharded environments" as "...eval() atrocity..."
Re:MongoDB adds atomic find and modify by VolatileVoid on Thursday December 31, 2009 @01:42PM (#1024724)
I thought db.eval was kind of like a BDL (Big Database Lock) - i.e. nothing will happen while the eval() is doing its thing?
Re:MongoDB adds atomic find and modify by JulianMorrison on Thursday December 31, 2009 @02:41PM (#1024830)
That seems to be reliably true for the single-node case only.