Projects tigase _server server-core Issues #1281
Add 'active in last x' statistic (#1281)
wojciech.kapcia@tigase.net opened 3 years ago

Currently we only expose statistics related to currently connected users. Considering that more and more people use mobile devices with push enabled this metric is not exactly adequate to assess number of users on the server. It would be nice to have statistics regarding user active in last x (last 24h, last week, last month) based on the last login time from the database. I could be cached and calculated once a day (new method everyDay similar to everySecond / everyMinute / everyHour)

wojciech.kapcia@tigase.net commented 2 years ago

Implemented for last day, week and 30 days. Value is calculated every hour (should not impact performance). I didn't re-added index on last_active column (removed in #issue #1178) as it would affect logging-in performance and statistics query is less important.

issue 1 of 1
Type
Task
Priority
Normal
Assignee
Version
tigase-server-8.3.0
Spent time
9h 15m
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#1281
Please wait...
Page is in error, reload to recover