dotaUpdatesBot icon indicating copy to clipboard operation
dotaUpdatesBot copied to clipboard

Migrate to a proper database system

Open zachkont opened this issue 8 years ago • 7 comments

JSON files are easy to use but far from ideal. Migrating to MongoDB is the obvious choice, but I would prefer something more... editable, for testing purposes and future usage of the saved links in other projects. Or at least some accompanying scripts for basic CRUD and display on the DB.

Suggestions are welcome

zachkont avatar Oct 17 '17 16:10 zachkont

Instead of directly using the json commands in the main method it would probably be a good idea to call seperate functions, e.g. to add a user to the subscription list, so that we can later easily change the data base system in the utils.py instead of the main module, at least that's how I would do it in Java. Thoughts?

TimJentzsch avatar Nov 17 '17 22:11 TimJentzsch

Until we change the current system to another one yeah, it does sound like a great addition

zachkont avatar Nov 20 '17 10:11 zachkont

What about AWS? It's a super easy way (But powerful) way of doing it. I could get started on it tomorrow.

jdbohrman avatar Jul 31 '18 06:07 jdbohrman

I am not sure what you mean, are you suggesting moving the entire bot on AWS and use their infrastructure? Last time I checked the free tier didn't cover my needs, do you have any specific proposal?

zachkont avatar Aug 03 '18 11:08 zachkont

I'll submit an issue with my suggestions

jdbohrman avatar Aug 03 '18 19:08 jdbohrman

I'm wondering why you'd want to migrate to a database when json files are working properly/are good enough at this point in time.

Mindavi avatar Aug 23 '18 12:08 Mindavi

Besides the general "cleanliness" of a proper data management system, I believe that file I/O is the main culprit behind the issues described in #47. However, the server has been performing flawlessly for the past couple of months so maybe it was something else.

zachkont avatar Sep 04 '18 08:09 zachkont