title: How to cleanly access deeply embeded fields in pymongo?
body: <p>My documents are stored in the format <code>sysstat.host.statistics.timestamp[].cpu-load-all.cpu[].usr</code>, where <code>timestamp</code> is a 30 element array, and <code>cpu</code> is a 1-64 element array. </p>
  
  <p><a href="https://i.stack.imgur.com/fJqxG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fJqxG.png" alt="enter image description here"></a></p>
  
  <p>If I grab the <code>timestamp</code> field,</p>
  
  <pre><code>timestampCursor = HOST_USAGE.find(
     {'sysstat.host.nodename': host}, 
     {'sysstat.host.statistics.timestamp': 1})
  </code></pre>
  
  <p>How can I then access <code>sysstat.host.statistics.timestamp[*].cpu-load-all.cpu[0].usr</code>, cleanly? Do I have to access each field by indexing each array, and so multiple iterations over each array-field?</p>