Answer the question
In order to leave comments, you need to log in
Is there an analogue of materialized views in MongoDB?
It is necessary to collect data from several nodes with mongo, execute an aggregating query in them and cache them for a while. In a normal db, I would use dblink and materialized view for this, but what can mongo offer in this regard?
Answer the question
In order to leave comments, you need to log in
The short answer is no.
Longer - it is possible to fasten Map/Reduce. It has several output options that can be forced to write the data you want to the collection you want. It turns out such a materialized view emulator. Only, of course, with a big, big redundancy.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question