Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #31376 -- Optimized nulls ordering when possible on SQLite and MySQL. #12583

Merged
merged 1 commit into from Mar 18, 2020

Conversation

charettes
Copy link
Member

https://code.djangoproject.com/ticket/31376


Both backends order NULLs first on ascending ordering and last on descending ordering which makes ORDER BY IS (NOT)? NULL wasteful when asc(nulls_first) and desc(nulls_last) are used since it prevents indice usage.

…MySQL.

Both backends order NULLs first on ascending ordering and last on
descending ordering which makes ORDER BY IS (NOT)? NULL wasteful when
asc(nulls_first) and desc(nulls_last) are used since it prevents indice
usage.
@felixxm felixxm force-pushed the nulls-ordering-optimization branch from 05fb943 to 9f07f27 Compare March 18, 2020 05:44
@felixxm felixxm changed the title Fixed #31376 -- Optimized null ordering when possible on SQLite and MySQL. Fixed #31376 -- Optimized nulls ordering when possible on SQLite and MySQL. Mar 18, 2020
@felixxm
Copy link
Member

felixxm commented Mar 18, 2020

@charettes Thanks 👍

@felixxm felixxm merged commit 9f07f27 into django:master Mar 18, 2020
@charettes charettes deleted the nulls-ordering-optimization branch March 22, 2020 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants