When do I need map reduce for database queries?

MapReduce is needed for aggregations in MongoDB. The normal queries follow a very different (and much faster) code path and they should always be used for real-time operations. MapReduce is definitely not intended for real-time, it's more for batch jobs.

MapReduce is needed for aggregations in MongoDB. The normal queries follow a very different (and much faster) code path and they should always be used for real-time operations. MapReduce is definitely not intended for real-time, it's more for batch jobs.

Technically, you could write all your queries using MapReduce, but that would be both painful and slow.

Thanks for the explanation. I was kinda wondering about that as well, whether to use map-reduce for real-time processing because you won't notice this in development. – jpartogi Sep 19 '10 at 3:48 You said MapReduce would be PITA to write for every query.

Isn't that what you do in CouchDB? – never_had_a_name Sep 29 '10 at 0:48.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions