Is there a common term / catch-phrase for the opposite of lazy loading?
Lazy Loading vs. Eager Loading. While lazy loading delays the initialization of a resource, eager loading initializes or loads a resource as soon as the code is executed. Eager loading also involves pre-loading related entities referenced by a resource.
Eager loading is the process whereby a query for one type of entity also loads related entities as part of the query. Eager loading is achieved by the use of the Include method. It means that requesting related data be returned along with query results from the database.
Early loading refers to loading that occurs at any time between 48 hours and 3-6 months.
Use Eager Loading when you are sure that you will be using related entities with the main entity everywhere. Use Lazy Loading when you are using one-to-many collections. Use Lazy Loading when you are sure that you are not using related entities instantly.
The oposite term for lazy loading is eager loading.
Eager loading is essentially computing the tasks when you ask for it.
Lazy Loading is when you only do the computation when it is required.
I've seen the terms "Eager Loading" and "Aggressive Initialization" both used.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With