Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Spring CrudRepository

 
Ranch Hand
Posts: 165
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




 
Saloon Keeper
Posts: 12253
259
  • 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: 165
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

    Bookmark Topic Watch Topic
  • New Topic