Describe a scenario where explicit loading would be more advantageous than eager loading.

  • Working with a large dataset where not all related entities are needed upfront
  • When there are only a few entities and their related data
  • When performance is not a concern
  • When all related entities are required upfront
Option 1 is correct. Explicit loading is advantageous over eager loading when working with a large dataset where not all related entities are needed upfront. In such scenarios, eager loading would load all related entities at once, potentially leading to performance issues and unnecessary resource consumption. Explicit loading allows loading specific related entities on demand, improving performance and resource utilization.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *