Does Flask suffer of the problem of useless order by on some ORM prefetches ? #5441
-
Hello, Recently I found a problem with Django and submitted a patch in a PR: I don't know yet Flask details. Can someone please dump the queries of such prefetches and see if the bug is present in Flask ? Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Flask does not contain an ORM. So this is (probably) an SQLAlchemy (not Flask-SQLAlchemy!) question. But AFAIK there is no ordering at all by default (whatever order the DB gives you), and when you use |
Beta Was this translation helpful? Give feedback.
Flask does not contain an ORM. So this is (probably) an SQLAlchemy (not Flask-SQLAlchemy!) question.
But AFAIK there is no ordering at all by default (whatever order the DB gives you), and when you use
.order_by()
it will create a db-levelORDER BY
.