I'm Creating a Simple Spring Boot application with JPA. I have millions of records to retrieve it from a database. in my repository when I call findAll(Pageable pageable)
it gets the records I want.
But takes lot of time to return me the subset of records. I found it happening because of count
query.
Is there a way we can cache the page
response after first call ?