• Dan McGee's avatar
    Don't hit the database twice per comment on package · 55da4d4e
    Dan McGee authored
    It's performance improvement day today. For non-superusers, we were hitting
    the database twice per comment on a package- once to get the UID, and once
    to check the owner of the comment. The best part is we already knew the
    owner of the comment, and we only need to get our own UID once.
    For viewing a package like yaourt, this cuts a single pageview from over 700
    queries to around 18, which is still not great but a pretty big improvement.
    Signed-off-by: default avatarDan McGee <dan@archlinux.org>
    Signed-off-by: default avatarLoui Chang <louipc.ist@gmail.com>