Also, you could limit the result set to the number of records you actually need. 5k seems like an absurdly large result set.
One final thing would be if you could pre-cull the Person data by narrowing it down to active users or something. The active_user field (if there is one), could quickly knock the result set in half before you have to run icontains. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---