How does the use of 'lazy loading' in an ORM framework like Hibernate affect database performance?
- Decreases performance by loading all data at once
- Depends on the specific use case
- Has no impact on performance
- Increases performance by loading data on demand
'Lazy loading' in Hibernate increases performance by loading data on demand, reducing the initial load time and resource consumption.
Loading...
Related Quiz
- What is the main difference between 'write-through' and 'write-back' caching strategies?
- The practice of breaking down a transaction into smaller parts to reduce locking is known as _________.
- What is the role of @ServerEndpoint annotation in Java WebSocket API?
- The __________ method is used by an HTTP servlet to handle PUT requests.
- Consider a servlet that initiates a long-running task asynchronously. What happens to the request thread during this task?