What impact does lazy loading have on the performance of an application with numerous small transactions?

  • Decreases performance due to additional database round trips
  • Improves performance by reducing initial load time
  • No impact on performance
  • Increases performance by loading related entities on demand
Option 1 is correct. Lazy loading in Entity Framework can negatively impact the performance of an application with numerous small transactions because it leads to additional database round trips as related entities are loaded on demand. This can result in increased latency and decreased overall performance compared to eager loading or explicit loading where related entities are loaded upfront.
Add your answer
Loading...

Leave a comment

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