This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
room_stats_historical and user_stats_historical appear unused #9602
Labels
T-Task
Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.
Comments
another point on this: according to the doc, it was originally envisaged that we would expire old entries from the |
clokep
added
the
T-Task
Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.
label
Mar 12, 2021
4 tasks
anoadragon453
added a commit
to Sorunome/synapse
that referenced
this issue
Jun 8, 2021
room_stats_historical doesn't appear to be ever read from. See matrix-org#9602.
anoadragon453
added a commit
to Sorunome/synapse
that referenced
this issue
Jun 9, 2021
This table's usefulness is debatable (see matrix-org#9602), but is currently used by both the codebase and tests. Thus for now I'm leaving it in, but it may well be removed in a future PR.
I thought during #6739 that we actually did use this table as we make a select from it here: synapse/synapse/storage/databases/main/stats.py Lines 328 to 337 in 44ce919
but it turns out that function is only called from the tests. So indeed, we don't seem to use this table in practice (though there are a few tests that mandate it be kept up to date currently). |
reivilibre
pushed a commit
to xmunoz/synapse
that referenced
this issue
Jul 8, 2021
- Purge all associated functionality - Update the docs - Get unit tests passing - Newsfile Signed-off-by: Cristina Muñoz <[email protected]>
richvdh
pushed a commit
that referenced
this issue
Jul 8, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
T-Task
Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.
We have a whole lot of code which maintains the
room_stats_historical
anduser_stats_historical
tables (and a config option,bucket_size
, which configures how it is populated), but afaict they are never actually used.It's not obvious to me what the purpose of these tables are for, and I'd argue that unless we have a clear usecase for them, the tables and dead code should be stripped out.
It looks like the concept of historical stats was introduced by @ara4n in the initial commits in #4338, though it subsequently got refactored out of recognition by #5971. @ara4n: any comments on the purpose of this, and/or objections to it being ripped out.
Also of interest (and would need updating) is the doc, https://github.com/matrix-org/synapse/blob/v1.29.0/docs/room_and_user_statistics.md.
The text was updated successfully, but these errors were encountered: