title: Modeling nested child collections in Redis
body: <p>The goal is modeling multiple nested collections, the data model is like this:</p>
  
  <ul>
  <li>One Product has multiple Features.</li>
  <li>One Feature has one property (doesn't mind) and multiple Toggles.</li>
  <li>One Toggle has one property (doesn't mind) and multiple Parameters.</li>
  <li>Parameter is key-value type.</li>
  </ul>
  
  <p>In the app the data model is gonna be queried by the Feature and Product names, so the Feature name is not unique and <strong>the goal is getting the Feature full of children</strong> (Toggle and Parameters).</p>
  
  <p>I imagine something like this, but my background is ahead of key-value stores:</p>
  
  <ul>
  <li><strong>MyProduct:features</strong> 1 2 3 4 5</li>
  <li><strong>feature:1</strong> name value</li>
  <li><strong>feature:1</strong> other_field value</li>
  <li><strong>feature:1:toggles</strong> 1 2 3 4 5</li>
  <li><strong>toggle:1</strong> name value</li>
  <li><strong>toggle:1</strong> other_field value</li>
  <li><strong>toggle:1:parameters</strong> 1 2 3 4 5</li>
  <li><strong>parameter:1</strong> field value</li>
  </ul>
  
  <p>Other approach:</p>
  
  <ul>
  <li><strong>MyProduct:feature1</strong> other_field value</li>
  <li><strong>MyProduct:feature1:toggle1</strong> other_field value</li>
  <li><strong>MyProduct:feature1:toggle1:parameter1</strong> field value </li>
  </ul>
  
  <p>So yeah, i'm totally lost
  Thanks for all guys!!</p>