Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cummulative stream size calculation #1390

Open
gjedlicska opened this issue Feb 20, 2023 · 0 comments
Open

Cummulative stream size calculation #1390

gjedlicska opened this issue Feb 20, 2023 · 0 comments
Labels
enhancement New feature or request question

Comments

@gjedlicska
Copy link
Contributor

The (semi) user facing issue this is to address is, the slow loading admin streams view or any other view where we need to calculate the disk size the stream consumes.

Since we only allow deleting stream objects from the database when we delete the stream, we can easily calculate the stream size just by incrementing a size number when inserting new objects to the stream.

The only tricky part is, to run a migration that seeds the current size values of existing streams.

@gjedlicska gjedlicska added enhancement New feature or request question labels Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question
Projects
None yet
Development

No branches or pull requests

1 participant