title: Indexing array values in an object in an IndexedDB
body: <p>For a Chrome app, wich stores data in IndexedDB, i have a object like this:</p>
  
  <pre><code>var simplifiedOrderObject = {
      "ordernumber": "123-12345-234",
      "name": "Mr. Sample",
      "address": "Foostreet 12, 12345 Bar York",
      "orderitems": [
          {
              "item": "brush",
              "price": "2.00"
          },
          {
              "item": "phone",
              "price": "30.90"
          }
      ],
      "parcels": [
          {
              "service": "DHL",
              "track": "12345"
          },
          {
              "service": "UPS",
              "track": "3254231514"
          }
      ]
  }
  </code></pre>
  
  <p>If i store the hole object in an objectStore, can i use an index for "track", which can be contained multiple times in each order object? </p>
  
  <p>Or is it needed or possibly better/faster to split each object into multiple objectStores like know from relational DBs:</p>
  
  <ul>
  <li>order</li>
  <li>orderitem</li>
  <li>parcel</li>
  </ul>
  
  <p>The solution should also work in a fast way with 100.000 or more objects stored.</p>