Hi @Marek_Bisztyga,
Not necessarily. You can attempt the following:
Create view with pipeline without the allowDiskUse, example:
db.createView("myView", "myColl" , [ { $group : {"_id" : "$id" , arr : { $push : "$value" }} }])
The view only consume the data when you query it. Here you can use the allowDiskUse:
Prior 4.4 -
db.myView.aggregate([],{allowDiskUse : true });
From 4.4 you can use find:
db.myView.find({},{},{allowDiskUse : true })
Thanks
Pavel