• Yorick Peterse's avatar
    Cache Banzai projects/objects using RequestStore · 57bde0ce
    Yorick Peterse authored
    This was originally suggested by @ayufan and modified to be a bit
    cleaner and use RequestStore instead of a regular Hash.
    
    By caching the output of the two methods involved the number of queries
    is reduced significantly. For example, for an issue with 200 notes (of
    which 100 reference a number of merge requests) this cuts down the
    amount of queries from around 6300 to around 3300.
    57bde0ce
This project manages its dependencies using Bundler. Learn more
Gemfile.lock 26 KB