top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is hibernate caching? Explain hibernate first level cache?

0 votes
618 views
What is hibernate caching? Explain hibernate first level cache?
posted Sep 6, 2017 by Neeraj Kumar

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

As the name suggests, hibernate caches query data to make our application faster. Hibernate Cache can be very useful in gaining fast application performance if used correctly. The idea behind cache is to reduce the number of database queries, hence reducing the throughput time of the application.

Hibernate first level cache is associated with the Session object. Hibernate first level cache is enabled by default and there is no way to disable it. However hibernate provides methods through which we can delete selected objects from the cache or clear the cache completely.

answer Sep 7, 2017 by Pooja Singh
...