diff options
author | Dan McGee <dan@archlinux.org> | 2010-02-17 02:41:16 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-02-17 02:43:08 +0100 |
commit | e732861961feca370d6472b5bd64242faaa2fab6 (patch) | |
tree | 7055b95b064b006e3b7daa8363bc22f82945a27c /devel/models.py | |
parent | f3db1bb123ee4c61e7bb7e8a0c671d831a1ce990 (diff) | |
download | archweb-e732861961feca370d6472b5bd64242faaa2fab6.tar.gz archweb-e732861961feca370d6472b5bd64242faaa2fab6.tar.xz |
Make packages view much more efficient
The len() call was killing performance, especially in the default click-thru
case where we show the packages list without any filtering (only sorting).
Also use a well-placed select_related() to further drop the query count. As
noted by the TODO, there is still more that can be done here to improve
performance.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel/models.py')
0 files changed, 0 insertions, 0 deletions