title: MongoDB Erlang Driver find limit occurs where?
body: <p>I'm trying to integrate MongoDB driver in Erlang.</p>
  
  <p>After some coding it appears to me that the only way to limit the number of retrieved rows can only occurs when dealing with the cursor after the <code>find()</code>action.</p>
  
  <p>Here's my code so far : </p>
  
  <pre><code>Cursor = mongo:find(Connection, Collection, Selector),
  Result = case Limit of
                infinity -&gt;
                   mc_cursor:rest(Cursor);
                _ -&gt;
                   mc_cursor:take(Cursor, Limit)
           end,
  mc_cursor:close(Cursor)
  </code></pre>
  
  <ul>
  <li>What I'm afraid of, is when the Collection will be huge, what will happen ?</li>
  <li>Won't it be to huge to fetch and fit the memory ?</li>
  <li>How the cursor is basically working ?</li>
  <li>Or is there just a better way to limit the fetch ?</li>
  </ul>