3 ms·
Serious question: Django doesn't even have lazy loading. Why do people use it? Am I missing something? No way I'd wait a few seconds to get something big from t
by ileri62 8y ago
Serious question: Django doesn't even have lazy loading. Why do people use it? Am I missing something? No way I'd wait a few seconds to get something big from the db
- hombre_fatal 8y agoWhat are you referring to? Lazy loading in Rails tends to refer to how Active Record waits until access time to send the query: https://rubyinrails.com/2014/01/08/what-is-lazy-loading-in-rails/ https://rubyinrails.com/2014/01/08/what-is-lazy-loading-in-r... It's still synchronous.
- sjamaan 8y agoDjango has this type of lazy loading as well: https://docs.djangoproject.com/en/2.1/ref/models/querysets/#prefetch-related https://docs.djangoproject.com/en/2.1/ref/models/querysets/#...
- collyw 8y agoYes it does, the problem seems to be that no one bothers to learn how the ORM works.