<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sat, 18 May 2013 07:09:58 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Derick Rethans' Blog: MongoDB Cursors with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/17990</guid>
      <link>http://www.phpdeveloper.org/news/17990</link>
      <description><![CDATA[<p>
<i>Derick Rethans</i> has a new post to his site today about <a href="http://derickrethans.nl/cursors-in-mongodb.html">MongoDB cursors</a> in PHP when using the <a href="http://php.net/mongodb">PHP driver</a> and how it handles pulling data from the server.
</p>
<blockquote>
Recently I was asked to improve the <a href="http://docs.php.net/manual/en/mongocursor.batchsize.php">MongoCursor::batchSize</a> documentation. This began an indepth investigation in how the PHP <a href="http://php.net/mongodb">driver</a> for <a href="http://mongodb.org/">MongoDB</a> handles pulling data that's been queried from the MongoDB server. Here are my findings.
</blockquote>
<p>
He talks about the cursor that's created when a "find" call is made and how you can add on additional options (via other methods on the cursor) to its execution. He also covers how you can set your own batch size, using limit to only fetch a certain number of results and combining the two to make for more memory efficient, yet complete, returned data sets.
</p>]]></description>
      <pubDate>Tue, 22 May 2012 12:23:16 -0500</pubDate>
    </item>
  </channel>
</rss>
