• Yorick Peterse's avatar
    Use Atom update times of the first event · de7c9c7a
    Yorick Peterse authored
    By simply loading the first event from the already sorted set we save
    ourselves extra (slow) queries just to get the latest update timestamp.
    This removes the need for Event.latest_update_time and significantly
    reduces the time needed to build an Atom feed.
    
    Fixes gitlab-org/gitlab-ce#12415
    de7c9c7a
event_spec.rb 2.07 KB