Quantcast
Channel: BlogoSfera » small
Viewing all articles
Browse latest Browse all 15

When SQLAlchemy decides to use subquery with .limit() method?

$
0
0

I have an error, when SQLAlchemy produced wrong SQL query, but I can’t determine conditions. I use Flask-SQLAlchemy and initially it’s a just MyModel.query and it represented by simple SELECT with JOINs. But when .limit() method is applied, it transforms and uses subquery for fetch main objects and only then apply JOINs. The problem is […]

The post When SQLAlchemy decides to use subquery with .limit() method? appeared first on BlogoSfera.


Viewing all articles
Browse latest Browse all 15

Trending Articles