dominno / django-moderation

django-moderation is reusable application for Django framework, that allows to moderate any model objects.
BSD 3-Clause "New" or "Revised" License
269 stars 90 forks source link

Index content object pks #168

Closed caglarih closed 6 years ago

caglarih commented 6 years ago

https://github.com/yolcu360/django-moderation/blob/master/moderation/managers.py#L36 performs an operation on object_pk without index. Nested loop join becomes significant based on number of records (average 600ms for my model).

dominno commented 6 years ago

@caglarih Please check unit tests they are failing. Will merge only when all tests are green. Thank you