fetchMode
FetchMode is a concept often encountered in object-relational mapping (ORM) frameworks, particularly in Java and other programming languages. It dictates how associated entities are loaded from a database when the parent entity is retrieved. Understanding fetchMode is crucial for optimizing database performance and managing application memory.
There are typically two primary fetch modes: Eager Fetch and Lazy Fetch. Eager Fetch, also known as
Lazy Fetch, conversely, involves delayed loading. Associated entities are only loaded from the database when they
The choice between Eager and Lazy Fetch depends on the specific use case and the expected access