summaryrefslogtreecommitdiffstats
path: root/web/template/stats/updates_table.php
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2009-04-11 16:40:57 -0500
committerLoui Chang <louipc.ist@gmail.com>2009-06-18 01:47:17 -0400
commite2b3bd1c37d91a747e8f774bbb91aad3dc466c68 (patch)
tree3293311340de8753996a61c0ff21d9611a25e84e /web/template/stats/updates_table.php
parent135d61095796442db6dc77ca87b5baf49b6d7029 (diff)
downloadaurweb-e2b3bd1c37d91a747e8f774bbb91aad3dc466c68.tar.xz
Add multicolumn indexes on votes and notifications tables
To put a long story short, when we do joins on these tables in our pkg_search_page() function, we always join on both the user ID and package ID columns. By creating multicolumn indices, we can always get the exact row we are looking for in the table. The benefits of adding a unique index should also speak for themselves, as we previously did not have this on either of these tables. This is part one of a two-part series to address the fact that this query was often showing up in our slow query logs. Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'web/template/stats/updates_table.php')
0 files changed, 0 insertions, 0 deletions