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

File IO Overwrites Entire DB Every Time #6

Open
JimTheCactus opened this issue Jul 16, 2014 · 2 comments
Open

File IO Overwrites Entire DB Every Time #6

JimTheCactus opened this issue Jul 16, 2014 · 2 comments

Comments

@JimTheCactus
Copy link
Owner

Along that same line of thought I need to improve his current mode of saving data. Right now any time you do anything that changes his save data he writes the whole database to the file. This is both bad for Chachamaru’s SSD and for Gummy’s speed. I’m tempted to re-implement this feature as a journaling system and then simply have him reconcile his journal when he does a full load.

@JimTheCactus
Copy link
Owner Author

Strictly speaking, if this was accessed more often it'd be a critical issue. In practice, however, gummy writes to this database only a few times a day, tops, because of usage patterns. This probably isn't worth the time to implement as it's a pretty significant change in architecture.

@JimTheCactus
Copy link
Owner Author

Rather than trying to roll my own on this, I probably should switch to PERL DBi and MySQL. It's not my favorite solution, but it will scale nicely.

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

1 participant