KamoCRM

Drop a @Transactional that never applied

RefactorRAGService
Shipped
September 2, 2026 at 8:36 AM UTC
Author
Kamo
Commit
6774062

loadCatalogue is reached from catalogue() on the same bean, and self-invocation does not pass through the proxy, so the annotation was decoration. The query is one scalar projection with nothing lazy left to initialise, so the shared EntityManager's per-call context is already enough — said so instead, and made the method private to keep it that way.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing