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:
Cheers,
Stephen