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

Streams tables are never cleared out #5888

Open
richvdh opened this issue Aug 20, 2019 · 5 comments
Open

Streams tables are never cleared out #5888

richvdh opened this issue Aug 20, 2019 · 5 comments
Labels
A-Disk-Space things which fill up the disk T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements. z-p2 (Deprecated Label)

Comments

@richvdh
Copy link
Member

richvdh commented Aug 20, 2019

A number of 'stream' tables are appended-to, but are never cleared out. Such tables include:

@richvdh
Copy link
Member Author

richvdh commented Aug 20, 2019

(we should probably have a job to clear these out, but the difficulty is figuring out how old is "old")

@richvdh
Copy link
Member Author

richvdh commented Feb 2, 2023

A better alternative to figuring out how to clear them out is to get rid of them: #13456

@realtyem
Copy link
Contributor

realtyem commented Jul 7, 2023

You may scratch presence_stream off that list above. I dug far enough into the history to see that it is (at the very least) self-cleaned as of Oct 23rd, 2019 (in PR #6231 ) at which point the history becomes more difficult to easily trace. And that self cleaning persists today.

(If you are still finding evidence of this still existing though, please let me know. I'm terribad at using SQL)

@richvdh
Copy link
Member Author

richvdh commented Jul 7, 2023

You may scratch presence_stream off that list above. I dug far enough into the history to see that it is (at the very least) self-cleaned as of Oct 23rd, 2019 (in PR #6231 ) at which point the history becomes more difficult to easily trace. And that self cleaning persists today.

thanks, updated.

@realtyem
Copy link
Contributor

My terribad at SQL still stands. It appears that the cleaning on the presence_stream is only removing old rows that contain a specific user that is being updated. So it is cluttered with old offline states. I suppose this is better than nothing, but still not what I suspected. My apologizes. I have no idea how to fix this, and touching the database is where I won't go. Perhaps after #15868 goes through, I can copy/mutate that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Disk-Space things which fill up the disk T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements. z-p2 (Deprecated Label)
Projects
None yet
Development

No branches or pull requests

4 participants