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

Trim old blocks #59

Closed
jsha opened this issue Sep 13, 2014 · 1 comment
Closed

Trim old blocks #59

jsha opened this issue Sep 13, 2014 · 1 comment

Comments

@jsha
Copy link
Owner

jsha commented Sep 13, 2014

Right now the Blocks table grows rapidly because every user gets their blocks fetched every day and we never trim. Once a block batch fetch is complete, all block batches for that user except the most recent two should be deleted.

@BooDoo BooDoo mentioned this issue Oct 12, 2014
@jsha
Copy link
Owner Author

jsha commented Jan 18, 2015

Fixed. This is done by deleting old blockbatches, plus a foreign key constraint on the blocks table that makes the blocks get deleted when their containing blockbatch is deleted.

@jsha jsha closed this as completed Jan 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant