Skip to content

Does Flask suffer of the problem of useless order by on some ORM prefetches ? #5441

Answered by ThiefMaster
LLyaudet asked this question in Q&A
Discussion options

You must be logged in to vote

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-level ORDER BY.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LLyaudet
Comment options

Answer selected by LLyaudet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants