hyperlog-core / hyperlog-backend

Backend for hyperlog
0 stars 0 forks source link

NoSQL support for Django #32

Closed BrainBuzzer closed 4 years ago

BrainBuzzer commented 4 years ago

The data collected from the user's profile will need to be stored in some form of database. Since the data will have various data types and it's already being generated to a JSON file, it must be NoSQL database. I think Postgres also has some similar feature for NoSQL support. We'll have to choose between one of those.

Since some of this data also needs to be queried using the GraphQL endpoint for the user, django needs to have good support for this type of functionality. Is it possible to get this type of good support with Django?

BrainBuzzer commented 4 years ago

The solution that I can think of is really scrappy, but works. There will be another NodeJS based graphql endpoint that specifically gets info for any user without need for authentication. This data only needs to be queried and not mutated, so there is no need of user authentication.

nikochiko commented 4 years ago

The NodeJS solution would work. Django does have support for mongodb and I'll have to look into postgres. But django would need lot of configuration in any case. Just going with node would keep things much simple.