Skip to content
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.

Migrate to a proper database system #15

Open
zachkont opened this issue Oct 17, 2017 · 7 comments
Open

Migrate to a proper database system #15

zachkont opened this issue Oct 17, 2017 · 7 comments

Comments

@zachkont
Copy link
Owner

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

@TimJentzsch
Copy link
Contributor

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?

@zachkont
Copy link
Owner Author

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

@jdbohrman
Copy link

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

@zachkont
Copy link
Owner Author

zachkont commented Aug 3, 2018

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?

@jdbohrman
Copy link

I'll submit an issue with my suggestions

@Mindavi Mindavi mentioned this issue Aug 23, 2018
4 tasks
@Mindavi
Copy link

Mindavi commented Aug 23, 2018

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.

@zachkont
Copy link
Owner Author

zachkont commented Sep 4, 2018

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.

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

No branches or pull requests

4 participants