Changes between Initial Version and Version 1 of Ticket #25230
- Timestamp:
- Aug 5, 2015, 6:51:25 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #25230 – Description
initial v1 1 https://code.djangoproject.com/ticket/238752 1 Recent pull merge https://github.com/django/django/commit/c7fd9b242d2d63406f1de6cc3204e35aaa025233?diff=unified generates SQL which causes severe performance hit when using distinct parameter. 3 2 Instead of getting something like: … … 6 5 it generates SQL query which looks: 7 6 {{{SELECT COUNT('*') FROM (SELECT DISTINCT * FROM some_model) subquery;}}} 7 8 Related ticket: https://code.djangoproject.com/ticket/23875