When to use Mongodb views in application development

I am fairly new to Mongodb and have made some simple applications with it. I came across the feature that allows me to create views .
I am curious to know if in production systems is it recommended to create views that aggregate data over multiple collections and have applications query those views instead of having to create a complex aggregation query in code ( java Spring).

I ask because most articles I see with regards to creating application development normally do it in code and don’t mention the creation of views for application use.


1 Like