Hacker News new | ask | show | jobs
by ileri62 2643 days 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
2 comments

What 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-r...

It's still synchronous.

Django has this type of lazy loading as well: https://docs.djangoproject.com/en/2.1/ref/models/querysets/#...
Yes it does, the problem seems to be that no one bothers to learn how the ORM works.