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 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..."
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?
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).
http://www.mongodb.org/display/DOCS/Concurrency