How do objects get registered into the aggressive loader? Does it happen
automatically when they're initially loaded via query or cache? Ideally we
wanted to group items together when they're loaded and do bulk lazy loading
on that group rather than on all models in the session, but couldn't
p, the state.load_path, etc. You can't assume any of that
> stuff applies to all the other states if you are going across the whole
> result.It's probably better, since this is a very different kind of
> loader, to make it just load for all the states in the same
Ack, thanks Simon! That is definitely a bug :). I just pushed a fix.
Thanks for the feedback!
David
On Wednesday, May 3, 2017 at 5:47:54 PM UTC+8, David Chanin wrote:
>
> Hi Everyone,
>
> We just open-sourced a custom lazy loader for SQLAlchemy that does bulk
> lazy loadi
Hi Everyone,
We just open-sourced a custom lazy loader for SQLAlchemy that does bulk
lazy loading of relations - essentially a lazy subqueryload. The idea is
that whenever a relation is lazy-loaded on a model, the loader will look
for all similar models in the session that haven't had that