TexasDigitalLibrary / Vireo

Vireo is a turnkey Electronic Thesis and Dissertation (ETD) Management System.
https://texasdigitallibrary.atlassian.net/wiki/spaces/VUG/pages/87490642/About
GNU General Public License v2.0
44 stars 33 forks source link

Issue 1842: Submission load time is affected by fix for issue 1842. #1850

Closed kaladay closed 11 months ago

kaladay commented 11 months ago

Relates #1842. Solves regression from #1845

The PR 1845 (via commit f4494041060e5451df04e37aad0093eb8886f71e) introduced the ControlledVocabularyRepo onto the Field Profile directive. The result of this is that when the Student Submission view loads the submission for editing, the entire Controlled Vocabulary ends up being loaded. This has a notable performance hit.

Set the mapping to lazy to prevent this loading from happening and thereby improving performance.