Hi Anudeep Your change makes get() perform an extra query for count() before it . This would be a regression for most uses of get().
get() is not intended for use "when multiple objects exists in very big numbers". You may want to perform a single query, something like Model.objects.filter(id__in=[1, 2, 3, 4, ...]) , and sort out your duplicates in a loop in Python. Hope that helps, Adam -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAMyDDM0M%3DSXbrQVOWh2QDy%3DGLtuEYk_tQeMA4PXT%2BVKdEtAvMQ%40mail.gmail.com.