• Robert May's avatar
    Add Gitlab::AvatarCache and cache lookups by email · 8ffb34df
    Robert May authored
    Previously we were hitting the database every time we
    looked for an avatar with an email address. This introduces
    a new cache which stores these values, greatly cutting
    a number of n+1 queries where we load avatars in views.
    8ffb34df
avatar_cache.rb 2.39 KB