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

JSON file will become too big #13

Open
mrworf opened this issue Feb 13, 2019 · 2 comments
Open

JSON file will become too big #13

mrworf opened this issue Feb 13, 2019 · 2 comments
Assignees

Comments

@mrworf
Copy link
Owner

mrworf commented Feb 13, 2019

The way data is stored and processed today is using JSON. This works pretty well until you eventually have too many changes and JSON file gets too big. Since it's loaded into memory as one big block, this will become a scaling issue down the road.

Need to investigate other methods of storing the metadata or simply splitting it into multiple files to keep it simple (would prefer not to use sqlite or similar).

This issue is created so I can track thoughts and ideas as I experiment with different ways. Needless to say it must be backward compatible and not break existing backups.

@mrworf mrworf self-assigned this Feb 13, 2019
@securityfrog
Copy link

I've had to complete some prelimnary investigation on this before @mrworf you may be interested in checking out BSON or YAML due to the size issues

@mrworf
Copy link
Owner Author

mrworf commented Apr 3, 2019

It's not so much the file size as holding it in memory. I like JSON because it's "human readable" meaning that it can be rescued/repaired/converted easier without having the reader. But hold it all in memory is less than ideal once the file gets big enough.

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

2 participants