Skip to content
  • Dan McGee's avatar
    Dev dashboard performance improvement · 80e7d197
    Dan McGee authored
    
    
    Rather than one query per cell in the arches and repos statistics
    tables, we can group these together up front using Django annotations.
    This means we only need one query per table.
    
    In my local instance with all of the staging repos imported, this
    reduces the total query count on this page from 56 to 26, a rather
    marked improvement.
    
    Signed-off-by: default avatarDan McGee <dan@archlinux.org>
    80e7d197