Re: Morphia or Sleepy.Mongoose REST

171 views
Skip to first unread message

Stephen Steneker

unread,
Jul 31, 2012, 7:41:57 AM7/31/12
to mongod...@googlegroups.com
Hi there, Java driver, Morphia(PlayMorphia), and Sleepy. Mongoose Rest web service, which one is faster for query and basic statistics (max, min, sum, etc.) actions?
If Sleepy. Mongoose is, how to run MapReduce function for the max, min, avg, etc. in Java? how to pass map /reduce function in Java programming? Thanks a lot.
I know that Morphia has methods to access these max, min, etc. 

Hi,

I'm not entirely sure what you are trying to compare with Sleepy Mongoose (a REST API in Python) versus PlayMorphia (integrates Morphia with Play Framework, and communicates via the Java driver).  The fastest option in terms of pure speed is likely going to be one with the fewest layers (i.e. using the Java driver directly).  The additional layers like Morphia/Play may help cut down your development time, though :).

Here's an example of Map/Reduce in Java:

There are some more examples of Map/Reduce on the MongoDB wiki:
  http://www.mongodb.org/display/DOCS/MapReduce

.. and here's another quick reference with some samples of Java driver usage for different features:
 http://denniscrissman.blogspot.com/2011/03/sample-java-usage-for-mongodb.html

Cheers,
Stephen 
Reply all
Reply to author
Forward
0 new messages