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

Database rotation #31

Closed
seanlynch opened this issue Aug 6, 2018 · 5 comments
Closed

Database rotation #31

seanlynch opened this issue Aug 6, 2018 · 5 comments

Comments

@seanlynch
Copy link

As far as I can tell, the database will just grow without bounds, even if one expires old posts. This is what I want, since I am using mastodon-archive to archive old posts before expiring them. But the file will become unwieldy, and I imagine the program will eventually start running out of memory.

I'm not sure what the best approach is. I'm thinking that what I'd like is for the monotonically growing bits like statuses, favorites, mentions, and media to be split up somehow by date, with periodic snapshots of the other data. Since the data is already in a pretty simple format, this is already pretty easily doable with external tools, but it seems like the sort of thing that should be built into the software itself.

@kensanata
Copy link
Owner

kensanata commented Aug 7, 2018 via email

@kensanata
Copy link
Owner

3accf4d adds a split command. Sadly, the remaining commands don't know how to handled a split archive. Currently, searches will only work for the current data file; HTML exports will only be created for the current data file, and so on. Ideally, these commands would open one data file after another and do their work.

@lapineige
Copy link

Could we have a "join" command then ?
This would allow to run a command into the whole archive if needed.

@kensanata
Copy link
Owner

kensanata commented Nov 20, 2019 via email

@kensanata
Copy link
Owner

I think the --combine option introduced in #63 closes the problem. If anybody disagrees, feel free to reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants