• Post Reply Bookmark Topic Watch Topic
  • New Topic

Spring CrudRepository  RSS feed

 
Ravi Danum
Ranch Hand
Posts: 154
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I have read that the Spring CrudRepository method, save(Iterable<S> entities), does not clear the cache when running.  The problem is that too much memory is taken and that the cache should be cleared periodically during the save loop.

Is it possible to create an interface extended from the CrudRepository with a new save(Iterable<S> entities)?  The implementation of the new interface would clear the cache periodically during the save loop.

Thanks for any help you can give.

-Ravi




 
Stephan van Hulst
Saloon Keeper
Posts: 6988
110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ravi Danum wrote:I have read that the Spring CrudRepository method, save(Iterable<S> entities), does not clear the cache when running.

Please QuoteYourSources.

CrudRepository is an iterface. It says nothing about caching.
 
Ravi Danum
Ranch Hand
Posts: 154
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Stephan,

I have more research to do on this topic.

Thank you.

-Ravi

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!