goread icon indicating copy to clipboard operation
goread copied to clipboard

Suggestions for datastore bloat (self-hosting)

Open graymattrr opened this issue 6 years ago • 1 comments

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!

graymattrr avatar Apr 01 '18 02:04 graymattrr

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 :)

IdealChain avatar Jun 14 '18 11:06 IdealChain