What is the use of cache in hibernate?
Answer / Satyendra Gupta
Cache in Hibernate is used to store frequently accessed data in memory, reducing the need for database queries and improving performance. It helps minimize the number of times entities have to be retrieved from the database. Hibernate provides several types of caches such as first-level cache (associated with Session objects) and second-level cache (global, persistent across sessions).
| Is This Answer Correct ? | 0 Yes | 0 No |
What is a 1 to 1 relationship database?
How to get single record from database using hibernate?
What is default cascade in hibernate?
How to implement one to many relationships with annotation?
What is proxy in hibernate?
Why session is not thread safe?
What are the benefits of named sql query?
Is hibernate better than jdbc?
What is hql (hibernate query language)?
What is scalar query in hibernate?
What is the use of hibernateutil?
What is the difference between merge and update method?