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
..
2024-05-02 13:25:25 -07:00
2024-05-08 18:20:14 -07:00
2024-05-08 17:39:15 -07:00
2024-04-24 14:35:05 -07:00
2023-12-16 22:08:44 -08:00
2024-02-29 17:07:16 -08:00
2024-04-12 08:49:08 -07:00
2024-04-15 16:52:11 -07:00
2024-04-26 12:30:31 -07:00
2024-04-26 12:30:31 -07:00
2024-04-24 14:35:05 -07:00
2024-05-03 13:05:57 -07:00
2024-04-24 14:35:05 -07:00
2023-12-16 22:08:44 -08:00
2024-05-02 14:23:04 -07:00
2024-04-24 14:35:05 -07:00
2023-12-16 22:08:44 -08:00
2023-12-16 22:08:44 -08:00
2024-02-15 15:42:50 -08:00
2024-05-08 18:20:14 -07:00
2024-05-08 18:20:14 -07:00
2024-05-02 14:23:04 -07:00
2024-03-01 09:30:04 -08:00
2024-05-08 18:20:14 -07:00
2024-04-17 15:35:19 -07:00
2024-05-02 14:23:04 -07:00
2024-05-08 17:05:59 -07:00
2023-12-16 22:08:44 -08:00
2024-05-02 14:23:04 -07:00
2024-04-16 23:00:02 -07:00
2023-12-16 22:08:44 -08:00
2024-04-30 14:44:12 -07:00
2024-05-08 17:05:59 -07:00
2024-04-30 14:15:22 -07:00
2024-02-14 12:27:03 -08:00
2024-01-15 09:40:43 -08:00
2024-04-26 17:03:09 -07:00
2024-04-16 09:57:55 -07:00
2024-04-24 14:35:05 -07:00
2024-04-24 14:35:05 -07:00
2024-03-22 09:30:17 -07:00
2024-04-24 17:40:37 -07:00
2024-04-26 17:03:09 -07:00
2024-04-24 14:35:05 -07:00
2023-12-16 22:08:44 -08:00
2024-05-08 11:12:43 -07:00
2024-03-19 18:22:24 -04:00
2023-12-16 22:08:44 -08:00
2024-04-03 12:28:05 -07:00
2023-12-16 22:08:44 -08:00
2024-04-20 18:12:04 -07:00
2024-02-14 12:27:03 -08:00
2024-04-24 14:35:05 -07:00
2023-12-16 22:08:44 -08:00
2024-05-08 17:39:15 -07:00
2024-05-02 14:23:04 -07:00
2024-02-14 12:27:03 -08:00
2023-12-16 22:08:44 -08:00
2023-12-16 22:08:44 -08:00
2024-05-08 11:12:43 -07:00
2024-01-29 10:41:54 -08:00
2023-12-16 22:08:44 -08:00
2024-05-08 17:39:15 -07:00
2024-04-24 14:35:05 -07:00
2024-05-09 10:54:44 -07:00
2024-05-08 17:05:59 -07:00
2024-04-26 12:30:31 -07:00
2024-04-11 12:28:26 -07:00
2024-02-29 17:07:16 -08:00
2024-03-01 09:30:04 -08:00
2024-03-27 12:58:32 -07:00
2024-05-08 11:12:43 -07:00
2024-05-08 17:05:59 -07:00
2024-04-04 11:16:07 -07:00
2024-05-08 11:12:43 -07:00
2024-02-14 12:27:03 -08:00
2024-05-03 13:02:20 -07:00
2024-04-18 11:50:38 -07:00
2024-04-01 18:32:52 -07:00
2024-01-29 10:41:54 -08:00
2024-05-07 16:51:48 -07:00
2024-04-01 16:19:56 -07:00
2024-04-24 14:35:05 -07:00
2024-04-26 12:30:31 -07:00
2024-04-26 12:30:31 -07:00
2024-05-09 10:54:44 -07:00
2024-03-28 09:06:48 -07:00
2024-05-08 18:20:14 -07:00
2023-12-16 22:08:44 -08:00
2024-04-29 16:58:47 -07:00
2024-05-06 16:34:01 -07:00
2024-03-01 09:30:04 -08:00
2024-05-04 19:01:51 -07:00
2024-04-13 21:56:33 -07:00
2023-12-16 22:08:44 -08:00
2024-05-08 17:05:59 -07:00