few questions on RepeatableWriteUnitOfWork / IsolatedCache [message #1863387] |
Tue, 30 January 2024 21:46 |
Marc Godin Messages: 2 Registered: January 2024 |
Junior Member |
|
|
Hello ,
I'm currently looking at an old monolith based on eclipse link 2.7 but not a JPA monolith where we enable L2 by default.
But I'm not sure that in our case, where we have large batches, sharing the L2 cache is the best approach in our default cache for memory reason.
So I have 2 ideas
- the Isolated /Cachepolicy annotation to customize isolation on a "part" of the application seems to be a way forward for not propagation to L2
but also the RepeatableWriteUnitOfWork which seems to provide the "ability" to fill/clear the cache on an L1 session, whereas the standard unit of work doesn't seem to be able to do this, as writechanges is only marked by a single call.
As for RepeatableUnitOfWorkImpl, this class only seems to be available in the context of the JPA entity manager.
So another question is that if I understand Repeatable unitofwork logic correctly (like Hibernate's batch logic) is there a way to do this in the std eclispe link or do I need to migrate to JPA?
I hope I'm not saying too much suptidy, feel free to comment
regards marc
[Updated on: Thu, 01 February 2024 13:34] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.24537 seconds