| 26 | |
| 27 | A stackoverflow topic about this behavior: |
| 28 | https://stackoverflow.com/questions/32419190/django-admin-incorrectly-adds-order-by-into-query |
| 29 | |
| 30 | The issue (and commit) when this behavior is introduced (~7 years ago) |
| 31 | #17198 -- Ensured that a deterministic order is used across all database backends |
| 32 | |
| 33 | In reply to https://code.djangoproject.com/ticket/17198#comment:14 : |
| 34 | In our cases (a ~2M row table), the duration of `count(*)` query is ~300ms, but viewing the 2000th page (`LIMIT 100 OFFSET 200000`) is 8s! |