I think this example is not fair with the robustness in using Mongo Aggregation framework. IMHO the great thing about is that you can execute several steps in your data while being at the database side. You're able to perform a lot of transformations and operations just to make sure your application will receive only the data it needs.
The other scenario where the MongoDB syntax makes sense is when you have an array field on your collection. Using the $unwind command, can really make your life easier for querying and transformation.
Give it another try. =]
Maybe you just misunderstood the goal of this post. I didn’t say mongo is not robust or a good solution for any case, the point here is about the low level and non-fluent sintaxe.
When someone compare with the same query on SQL world is readable and easy to get the point.
My feeling is the MongoDB Inc. put in the Dev’s back the responsibility to explore all possibilities sometimes repetitive and well-known like grouping, summing, etc. They have enough resources to provide a high level sintaxe
Thanks for your point of view and btw I am using Mongo daily but with no so much love
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I think this example is not fair with the robustness in using Mongo Aggregation framework. IMHO the great thing about is that you can execute several steps in your data while being at the database side. You're able to perform a lot of transformations and operations just to make sure your application will receive only the data it needs.
The other scenario where the MongoDB syntax makes sense is when you have an array field on your collection. Using the
$unwind
command, can really make your life easier for querying and transformation.Give it another try. =]
Hi Eduardo!
Maybe you just misunderstood the goal of this post. I didn’t say mongo is not robust or a good solution for any case, the point here is about the low level and non-fluent sintaxe.
When someone compare with the same query on SQL world is readable and easy to get the point.
My feeling is the MongoDB Inc. put in the Dev’s back the responsibility to explore all possibilities sometimes repetitive and well-known like grouping, summing, etc. They have enough resources to provide a high level sintaxe
Thanks for your point of view and btw I am using Mongo daily but with no so much love