mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
analytics: Change messages_sent:client stat to daily frequency.
A few reasons: * Our two other subgroup'd message stats in UserCount are at CountStat.DAY frequency (messages_sent:is_bot and messages_sent:message_type). * Keeping this stat at hourly frequency would likely double the size of our analytics table, given the current stats. (Counterpoint: if there are roughly as many active streams as active users, and we keep messages_sent_to_stream:is_bot at hourly frequency, then maybe this stat is only a 30% or 50% increase). * We're currently only showing this on the frontend as a pie chart anyway.
This commit is contained in:
@@ -350,7 +350,7 @@ COUNT_STATS = {
|
||||
zerver_count_message_type_by_user, {},
|
||||
None, CountStat.DAY, False),
|
||||
'messages_sent:client': CountStat('messages_sent:client', zerver_count_message_by_user, {},
|
||||
(Message, 'sending_client_id'), CountStat.HOUR, False),
|
||||
(Message, 'sending_client_id'), CountStat.DAY, False),
|
||||
'messages_sent_to_stream:is_bot': CountStat('messages_sent_to_stream:is_bot',
|
||||
zerver_count_message_by_stream, {},
|
||||
(UserProfile, 'is_bot'), CountStat.HOUR, False)
|
||||
|
||||
Reference in New Issue
Block a user