1. 08 May, 2017 2 commits
    • Toon Claes's avatar
      Devise can assign trackable fields, but only allow writes once/hour · 3531ea09
      Toon Claes authored
      Not assigning the trackable fields seems to cause strange side-effects.
      3531ea09
    • Toon Claes's avatar
      Limit `update_tracked_fields` to write to database once/hour · 6a915d6f
      Toon Claes authored
      Every time a user logs in or out, the Trackable attributes are written to the
      database. This is causing a lot of load on the database, for data that isn't
      really critical.
      
      So to avoid the database being hammered, add a Gitlab::ExclusiveLease before
      writing trackable attributes to the database. This lease expires after an hour,
      so only when the attributes were written more than an hour ago, they can be
      written again. Otherwise they are ignored.
      6a915d6f
  2. 07 May, 2017 15 commits
  3. 06 May, 2017 20 commits
  4. 05 May, 2017 3 commits