Multiple choice technology programming languages

Batch fetching is useful incase of ?

  1. lazy="true"

  2. lazy="false"

  3. lazy="on"

  4. lazy="off"

Reveal answer Fill a bubble to check yourself
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.