-
- Downloads
Limit `update_tracked_fields` to write to database once/hour
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.
parent
8b9cd3c0
No related branches found
No related tags found
-
mentioned in issue #32041 (closed)
-
mentioned in commit 45f991be
-
mentioned in commit 73f448e5
-
mentioned in merge request !11219 (merged)
-
mentioned in commit ce971899
Please register or sign in to comment