summaryrefslogtreecommitdiffstats
path: root/devel/views.py
diff options
context:
space:
mode:
authorEvangelos Foutras <foutrelis@gmail.com>2010-01-26 06:03:40 +0100
committerDan McGee <dan@archlinux.org>2010-01-30 20:08:44 +0100
commitf1047dd4b330d5f9011076f346422f2b322ada9f (patch)
tree0b7300319d26d56769446433933392297a40af6a /devel/views.py
parentc58bcd5d77374bebad95c2a2157311a3098e60d7 (diff)
downloadarchweb-f1047dd4b330d5f9011076f346422f2b322ada9f.tar.gz
archweb-f1047dd4b330d5f9011076f346422f2b322ada9f.tar.xz
Drastically reduce loading time of Todo lists
Use Django's select_related() on the TodolistPkg QuerySet to avoid making 4 database queries per package. This way we're making just one query, regardless of the number of packages in the Todo list. Local testing with 1000 entries in a Todo list show that the loading time has been reduced from 2675 ms to around 560 ms, while the number of queries has been cut down from 8005, to only 5. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel/views.py')
0 files changed, 0 insertions, 0 deletions