Skip to content

Views ala RDBMS #2940

Answered by janl
dsebastien asked this question in Q&A
Discussion options

You must be logged in to vote

I think your best choice here is not applying your RDBMS best practices onto CouchDB, but try and model your data so it fits a document store better. E.g. you’re saying a meeting has a category field. That works fine a document model and CouchDB views can give you “all documents in a certain category”, but it doesn’t get much more fancy than this.

We currently have no plans for further linking documents to allow you to do what you outlined in your point 2. If you need to find documents that belong to Sebastian, then Sebastian needs to be in the doc. If you only reference the user id, then you need two queries:

  1. get user id for Sebastian
  2. get all docs for user id

Using multiple requests fo…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by janl
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants