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 relation populated yet and will issue a single SQL query to populate them all in bulk. I'm really curious to hear any feedback you may have on this idea / implementation, pitfalls that we're overlooking, or ideas for improvement. The repo is at https://github.com/operator/sqlalchemy_bulk_lazy_loader. Hope it's useful to others as well.
Thanks so much! -- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper http://www.sqlalchemy.org/ To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://stackoverflow.com/help/mcve for a full description. --- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at https://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.