title: I need an advice about NoSQL/MongoDb and data/models structure
body: <p>Recently I'm exploring NoSQL Databases. I need an advice about how to store data in the most optimal and efficient way for a given problem. I'm targeting MongoDB, now. However it should be the same with CouchDB.</p>
  
  <p>Let's say we have these 3 Models:</p>
  
  <pre><code>Story:
   id
   title
  
  User:
   id
   name
  
  Vote:
    id
    story_id
    user_id
  </code></pre>
  
  <p>I want to be able to ask the database these questions:</p>
  
  <ul>
  <li>Who has voted for this Story?</li>
  <li>What this User has Voted for?</li>
  </ul>
  
  <p>I'm doing simple joins while working with a relational DB. The question is, how should I store the data for those objects in order to be most efficient.</p>
  
  <p>For example, if I store the Vote objects as a subcollection of Stories it wont be easy to get the info - "What a user has voted for".</p>