ViewModel efficient fetch

This article has been moved to:

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.

2 Responses to ViewModel efficient fetch

  1. Lars says:


    Nice improvement!

    One thought – Instead of making it a normal Viewmodel Nesting, could this be a special type of viewmodel nesting, or a little simpler, a menu like the “Add Searchexpressions” for “Add Fetchhints”. Otherwise, I’ll never remeber this very nice feature.

    Best regards,

  2. Pingback: PSExpression , or how to do things in the DB from MDriven | CapableObjects

Leave a Reply

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


This site uses Akismet to reduce spam. Learn how your comment data is processed.