Re:I Miss Rails
by ileri62 on Friday March 29, 2019 @02:43AM
(#19519627)
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
[ Parent
| on HN ]
Re:I Miss Rails
by hombre_fatal on Friday March 29, 2019 @03:00AM
(#19519692)
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/#...