Daniel Keir Haywood created CAUSEWAY-3706:
---------------------------------------------
Summary: [Perf] Bulk resolve objects in table
Key: CAUSEWAY-3706
URL: https://issues.apache.org/jira/browse/CAUSEWAY-3706
Project: Causeway
Issue Type: New Feature
Components: Viewer Wicket
Affects Versions: 2.0.0
Reporter: Daniel Keir Haywood
Fix For: 2.1.0
When the Wicket Viewer renders a collection, it rehydrates each ObjectMemento
(basically a Bookmark) one-by-one. This can cause an N+1 style loading issue.
Since the collection's state already knows has the full list of Bookmarks, and
it knows which page of objects is to be displayed, we could have a preload
phase whereby the viewer emits an event (say) and a listener in the JDO or JPA
persistence store could use that as a hint to perform a bulk load of those
objects in one go.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)