Skip to content

Conversation

@fhelfer
Copy link
Contributor

@fhelfer fhelfer commented Dec 18, 2025

Summary

This PR adds proper preloading support for IRSS Collections and their resources, plus a cache for collection→resource mappings.

Details

  • Implemented collection-level preloading and caching in CollectionDBRepository and exposed it via getResourceIdsForCollections() and preload() in the repository/preloader layer.
  • Added preloadCollections() to the IRSS services/preloader to batch-load all resources for a set of collection IDs.

Motivation

In forum threads, each post (and draft) can have its own attachment collection. By preloading all collections of a thread page in one step, we avoid many per-resource roundtrips and significantly improve rendering performance for threads with many attachments.

We would also like to have this for ILIAS 11 & 10 if possible
FYI @mjansenDatabay

Best @fhelfer

@fhelfer fhelfer added improvement php Pull requests that update Php code labels Dec 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants