Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Clear out device_lists_changes_in_room table periodically. #13043

Open
erikjohnston opened this issue Jun 14, 2022 · 3 comments
Open

Clear out device_lists_changes_in_room table periodically. #13043

erikjohnston opened this issue Jun 14, 2022 · 3 comments
Labels
A-Device-List-Tracking Telling clients about other devices. Often related to E2EE. T-Task Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.

Comments

@erikjohnston
Copy link
Member

We added the device_lists_changes_in_room table in #12321, we should clear it out periodically so that it doesn't grow indefinitely.

Note that we want to use this new table in e.g. /sync #12388, so we need to make sure we correctly handle that case.

@erikjohnston erikjohnston added the T-Task Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks. label Jun 14, 2022
@florian-sabonchi
Copy link

florian-sabonchi commented Jun 15, 2022

Hello I would like to take a look. Someone else working on it? @erikjohnston What do you think about clearing the table in sync function, this is called in regular intervals.

@richvdh richvdh added the A-Device-List-Tracking Telling clients about other devices. Often related to E2EE. label Aug 1, 2022
@richvdh
Copy link
Member

richvdh commented Apr 3, 2023

It would be great to make this happen. device_lists_changes_in_room and its associated indexes are now taking up 3.2G of my 30G database.

@dklimpel
Copy link
Contributor

dklimpel commented Jul 11, 2023

Is there a workaround, some SQL statement or anything else, to clean up this table?

EDIT:
some solution #12821 (comment) ?

Open question

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
A-Device-List-Tracking Telling clients about other devices. Often related to E2EE. T-Task Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.
Projects
None yet
Development

No branches or pull requests

4 participants