tangentlabs/django-oscar — pull request #163 by elbaschid (2012-05-02 05:45:50+00:00)
Title: Reduced SQL queries for products page (issue #56148)

I went through the code for the products page and reduced the amount of SQL queries:

* Logged in user: from *205* down to *51*
* Logged out user: from *193* down to *35*

The actual code changes are minor. I only had to adjust the ``select_related`` and ``prefetch_related`` calls for the queryset of the ``ProductListView`` as most of the relevant fields are ``null=True`` or ``blank=True``.