1f3f879f9c7159fa9c04ed57b763dad3bb40e482
Add findByPersonIdWithMentionsFetched to TranscriptionBlockRepository: subquery finds blocks referencing the renamed person, outer JOIN FETCH loads their full mentionedPersons collection. Avoids N+1 lazy selects in the propagation listener. Filtered JOIN FETCH (WHERE m.personId=:personId) was rejected — it loads only one mention entry per block, risking data loss on saveAllAndFlush. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Description
No description provided
Languages
Python
73.1%
TypeScript
11.5%
Java
10.9%
Svelte
4.2%
Shell
0.1%