Read about our upcoming Code of Conduct on this issue

This instance will be upgraded to Heptapod 0.28.0 on 2022-01-18 at 14:00 UTC+1 (a few minutes of down time)

  • Yorick Peterse's avatar
    Cache the number of forks of a project · 970143440d40
    Yorick Peterse authored
    The number of forks of a project doesn't change very frequently and
    running a COUNT(*) every time this information is requested can be quite
    expensive. We also end up running such a COUNT(*) query at least twice
    on the homepage of a project.
    By caching this data and refreshing it when necessary we can reduce
    project homepage loading times by around 60 milliseconds (based on the
    timings of
project.rb 42.2 KB