Implement progressive user log compaction
Trim the number of log entries per user to 100 at most, but only run the (relatively expensive) compaction for users that actually log in: this is determined by keeping a small in memory cache of active usernames hooked to 'add_log'. Also comes with a simple implementation of cron-like background jobs.
Showing
server/mgmt.go
0 → 100644
server/mgmt_test.go
0 → 100644
Please register or sign in to comment