Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start planning/describing and attempting DB queries #25

Open
VirtualDOMinic opened this issue Sep 13, 2018 · 0 comments
Open

Start planning/describing and attempting DB queries #25

VirtualDOMinic opened this issue Sep 13, 2018 · 0 comments

Comments

@VirtualDOMinic
Copy link
Contributor

Ideas of queries we'll need (non-exhaustive):

  • Want to retrieve a list of resources (with all their corresponding information) related to gender
  • Want to retrieve a list of resources relevant (directly or indirectly) to age, ethnicity and gender only

The above examples are a little specific, but hopefully give a good general idea. Please add your thoughts (especially of more generic queries) to this issue and/or a document on here or hackmd :)

Considerations:
Do we want to have our results as an object (JSON)?
How do we display all the tags of a resource?
How do we avoid duplicating the resource's appearance in our response, if it relates to several of our demographic tags, for example?

See the "junction table approach" for example queries http://blog.bguiz.com/2017/postgres-many2many-sql-non-relational/

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

No branches or pull requests

3 participants