Batch fetching is useful incase of ?
-
lazy="true"
-
lazy="false"
-
lazy="on"
-
lazy="off"
A
Correct answer
Explanation
Batch fetching is a performance optimization used with lazy loading to avoid the n+1 select problem. When lazy="true", Hibernate can batch multiple lazy initialization requests into a single query. With lazy="false", data is eagerly loaded, making batch fetching unnecessary. Options C and D use invalid attribute values.