I have a functionality where a list of A(Entity) objects is given which is being iterated to manipulate a functionality where in the iteration B(Entity)'s column value is fetched by C_ID and DATE multiple times(JPA method: findByCIdAndDate
), there are possibilities that by the same C_ID and DATE are queried multiple times. How do we approach this performance-wise?.
Is this ok to have this functionality because this could be handled by default Hibernate cache?
FYI: There is no caching applied to the application.