zulip/analytics
Mateusz Mandera 9406bfbc0a analytics: Store realm disk space used as a CountStat.
Fixes #29632.

The issue description explains this well:

We currently recalculate `currently_used_upload_space_bytes` every file
upload, by dint of calling `flush_used_upload_space_cache`  on
save/delete, and then immediately calling
`user_profile.realm.currently_used_upload_space_bytes()` in
`notify_attachment_update`.  Since this walks the Attachments table,
recalculating this can take seconds in large realms.

Switch this to using a CountStat, so we don't need to walk significant
chunks of the Attachment table when we upload an attachment.  This will
also give us a historical daily graph of usage.
2024-05-09 10:54:44 -07:00
..
lib analytics: Store realm disk space used as a CountStat. 2024-05-09 10:54:44 -07:00
management groups: Use NamedUserGroup for all queries. 2024-04-26 17:03:09 -07:00
migrations analytics: Regenerate partial indexes due to Django bug. 2023-11-16 13:53:04 -08:00
tests analytics: Store realm disk space used as a CountStat. 2024-05-09 10:54:44 -07:00
views stats: Update translated strings for stream to channel rename. 2024-04-24 14:35:05 -07:00
__init__.py
models.py python: Consistently use from…import for datetime. 2023-12-05 12:01:18 -08:00
urls.py corporate: Move support and activity views to /corporate. 2024-01-30 10:06:48 -08:00