Skip to content
This repository has been archived by the owner on Mar 16, 2020. It is now read-only.

Suggestions for datastore bloat (self-hosting) #349

Open
graymattrr opened this issue Apr 1, 2018 · 1 comment
Open

Suggestions for datastore bloat (self-hosting) #349

graymattrr opened this issue Apr 1, 2018 · 1 comment

Comments

@graymattrr
Copy link

I've noticed after using goread for a year or two (thank you, BTW!) that I am seeing some datastore bulk in my app engine account, causing small, but regular charges. As someone who isn't super familiar with go or with the architecture of the app, any suggestions for clearing out old items and keeping the app under the free app engine quota?

Thanks!

@IdealChain
Copy link

For me it worked pretty well, until someday I ran out of Datastore space because of hundredthousands of entries in the log table. And then I found out that you can't simply clear a lot of entries without paying a lot.

That could probably be handled better, but I simply added a cronjob that slowly purges the table, 500 log entries per hour. After some months, all log entries were gone :)

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

No branches or pull requests

2 participants