Tell me more ×  I'll start off by saying I've done a lot of
research but I'm still pretty lost.  I have a working version,
but it's the most inefficient way you can do this I'm sure. I'm
not super confident about knowing the best way to plan out a DB,
I've become to dependent on ActiveRecord, clearly. Anyways, I'm
simply trying to figure out these things:    1. Find out the
best way to plan the db (how I should separate documents)   2.
Find the most efficient to deal with relations   3. Find good
method to query from the server  Ok, so some things I've
noticed: One, you can't pass I client variable into views so
using a method like that won't work. Two, I think there might be
away to get all posts and then check if the type is post and
then return the matching documents, but that seems like a lot of
data moving around.  Some code:  So I'm using Node.js, CouchDB,
and nano as middleware.  Post Document:  "_id": "post-slug",
"title": "Post Slug", "user": "film42", "date": 1343451412,
"type": "post"  User Documen