ViewModel efficient fetch

This article has been moved to: https://wiki.mdriven.net/index.php/Efficient_ViewModel_fetch

ViewModels are good for efficient fetching of data since they declaratively explain what data that will be used. This enables MDriven to scan thru the expressions and fetch data with a lot fewer queries.

If you have a root of Something that has a list of details and the detail  in turn fetch even more details you could easily end up with x*y*z queries to the database.

…………

 

This entry was posted in ViewModel and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*