Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-3707

[Perf] Preload mixin property values (when displayed in a collection)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.0.0
    • 2.1.0
    • Viewer Wicket
    • None

    Description

      Following on and similar to CAUSEWAY-3706, if an object has a mixin property, and that property is part of a collection, then we'll get an N+1 style of issue when each object's (row's) property is evaluated.

      To load these instead in bulk, we could have a preload hook (an optional interface to be implemented by mixins) that would return a `List<Bookmark>`.  The Wicket viewer would call this for each object resolved and would then aggregate the Bookmarks and fire an event for the JPA/JDO persistence store to load them in bulk.

      This wouldn't be an exact science, but ought to reduce database queries to some extent.  It would probably be easier for JPA than JDO because the underlying Ids of the objects that need to be resolved are (probably) easier to obtain.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: