You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@causeway.apache.org by "Daniel Keir Haywood (Jira)" <ji...@apache.org> on 2026/07/12 11:21:00 UTC
[jira] [Updated] (CAUSEWAY-3707) [Perf] Preload mixin property values (when displayed in a collection)
[ https://issues.apache.org/jira/browse/CAUSEWAY-3707?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Keir Haywood updated CAUSEWAY-3707:
------------------------------------------
Fix Version/s: 4.1.0
(was: 3.7.0)
> [Perf] Preload mixin property values (when displayed in a collection)
> ---------------------------------------------------------------------
>
> Key: CAUSEWAY-3707
> URL: https://issues.apache.org/jira/browse/CAUSEWAY-3707
> Project: Causeway
> Issue Type: New Feature
> Components: Viewer Wicket
> Affects Versions: 2.0.0, 3.0.0
> Reporter: Daniel Keir Haywood
> Priority: Minor
> Fix For: 4.1.0
>
>
> 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.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)