Friday, October 31, 2014

Re: Slow SQL query

Hi Erik,
 
Maybe Users doesn't belong in the Orders table? You could move the user to a different table which stores the Order.id <-> user_id relation, which would give a fast lookup on user_id and thus easy access to the Order.id index.
Interesting idea! I'll think about it.

Thanks,
Collin
 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ced56535-bedc-4c41-82b1-ae68b6f9066b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment