<?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>Thu, 23 May 2013 00:31:32 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPMaster.com: MongoDB Indexing, Part 2]]></title>
      <guid>http://www.phpdeveloper.org/news/19579</guid>
      <link>http://www.phpdeveloper.org/news/19579</link>
      <description><![CDATA[<p>
PHPMaster.com has posted part two of their series looking at indexing in MongoDB databases (<a href="http://phpdeveloper.org/news/19551">part one here</a>) with some <a href="http://phpmaster.com/mongodb-indexing-2">more advanced concepts</a> Mongo makes available.
</p>
<blockquote>
In <a href="http://phpmaster.com/mongodb-indexing-1/">part 1</a> of this series we had an introduction to indexing in MongoDB. we saw how to create, use, and analyze queries with indexes giving us a good foundation to build on. In this part, we'll take a look at a few more small but important concepts, like indexing on sub-documents and embedded fields, covered queries, and index direction.
</blockquote>
<p>
They use the same "posts" collection from the previous article, showing you how to index it based on a "location" sub document and "embedded fields" inside of it. They also touch on complex sorting with a multi-field index and the idea of "covered queries." These are queries that all fields queried are part of an index as well as all returned. They finish up the article by showing you how to remove indexes too.
</p>
Link: http://phpmaster.com/mongodb-indexing-2]]></description>
      <pubDate>Mon, 13 May 2013 10:36:46 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPMaster.com: MongoDB Indexing, Part 1]]></title>
      <guid>http://www.phpdeveloper.org/news/19551</guid>
      <link>http://www.phpdeveloper.org/news/19551</link>
      <description><![CDATA[<p>
New on PHPMaster.com is the first part of their series about <a href="http://phpmaster.com/mongodb-indexing-1/">indexing in MongoDB</a>, a method for optimizing your collections to make querying them even faster. They cover the five main types of indexes and situations where they can help.
</p>
<blockquote>
Indexing is one of the more important concepts of working with MongoDB. A proper understanding is critical because indexing can dramatically increase performance and throughput by reducing the number of full documents to be read, thereby increasing the performance of our application. Because indexes can be bit difficult to understand, this two-part series will take a closer look at them.
</blockquote>
<p>
They look at the default "_id" index, secondary, compound, multikey and multikey compound indexes. Example documents and results are included as well as some of the options that can be set on the index types to tweak performance. They finish up the article with a look at some of the limitations and considerations to think about when using indexing, including that they cannot be used with regex queries.
</p>
Link: http://phpmaster.com/mongodb-indexing-1]]></description>
      <pubDate>Mon, 06 May 2013 11:50:44 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Lorna Mitchell: Installing XHGui]]></title>
      <guid>http://www.phpdeveloper.org/news/19286</guid>
      <link>http://www.phpdeveloper.org/news/19286</link>
      <description><![CDATA[<p>
<i>Lorna Mitchell</i> has a new post today showing you how to <a href="http://www.lornajane.net/posts/2013/installing-xhgui">install XHGui</a> to help with profiling your application for performance and processing issues.
</p>
<blockquote>
If you're not familiar with XHGui it's a fabulously easy and friendly way to profile your application; to understand which method calls in a page take the time and how many times they are made, so you can improve the performance of your application. All these instructions are for my 32-bit Ubuntu 12.10 system, hopefully they will work for you or you'll be able to adapt them as appropriate.
</blockquote>
<p>
She lists the dependencies you'll need to have installed before you can get XHGui working correctly including a MongoDB instance and the <a href="http://pecl.php.net/package/xhprof">PECL xhprof</a> extension. With those all set to go, you can go grab the latest XHGui <a href="https://github.com/preinheimer/xhgui">from github</a> and drop it into place. 
</p>]]></description>
      <pubDate>Thu, 07 Mar 2013 12:15:01 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Derick Rethans: MongoDB's aggregation framework]]></title>
      <guid>http://www.phpdeveloper.org/news/19073</guid>
      <link>http://www.phpdeveloper.org/news/19073</link>
      <description><![CDATA[<p>
<i>Derick Rethans</i> has a new post to his site introducing the <a href="http://derickrethans.nl/aggregation-framework.html">aggregation framework</a> that's a part of the MonogDB database system. The <a href="http://docs.mongodb.org/manual/aggregation/">aggregation framework</a> gives you functionality to access aggregated values from queries without having to map/reduce.
</p>
<blockquote>
I wanted to find out which cuisines are used in all of the documents of my dataset. Described in a different way: I want all the different cuisine=... tags as used in my dataset. Traditionally you would write a really complex&trade; Map/Reduce job, but since MongoDB 2.2, there is a new feature called the aggregation framework. The <a href="http://docs.mongodb.org/manual/aggregation/">aggregation framework</a> is meant to be an easy way to do fairly complex aggregation jobs.
</blockquote>
<p>
He talks about the various keywords and features the framework provides like "$match", "$project" and "$unwind". There's also code snippets included that show both the Mongo command line format and the PHP MongoClient format for making the queries. For those more familiar with writing RDBMS SQL, this functionality might help to replace some of the concepts you've been missing.
</p>]]></description>
      <pubDate>Tue, 22 Jan 2013 09:27:18 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Paul Reinheimer: XHGui and MongoDB]]></title>
      <guid>http://www.phpdeveloper.org/news/18949</guid>
      <link>http://www.phpdeveloper.org/news/18949</link>
      <description><![CDATA[<p>
<i>Paul Reinhemier</i> has <a href="http://blog.preinheimer.com/index.php?/archives/403-XHGui-on-MongoDB.html">written up  post</a> sharing his creation of the code to get <a href="https://github.com/preinheimer/xhgui">XHGui working with MongoDB</a>.
</p>
<blockquote>
<a href="http://mark-story.com/posts/archive">Mark Story</a> & I are pleased as punch to introduce <a href="https://github.com/preinheimer/xhgui">XHGui on MongoDB</a>. Our goal was to get as close to the original feature set of the tool I worked on a few years ago (which leveraged the starting point provided by Facebook) and then to release what we had. What we've got now works; there's still a good distance to go, but we think it's far enough that we can ask for help form the community at large.
</blockquote>
<p>
The tool collects XHProf data and stores it into a MongoDB database and allows you to <a href="http://blog.preinheimer.com/uploads/runpage.png">view</a> <a href="http://blog.preinheimer.com/uploads/urlpage.png">recent</a> activity. There's a few warnings that he includes with the post, so be sure to read those through if you plan on using the tool.
</p>]]></description>
      <pubDate>Wed, 26 Dec 2012 10:02:01 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Derick Rethans: Read Preferences wth the MongoDB PHP driver]]></title>
      <guid>http://www.phpdeveloper.org/news/18927</guid>
      <link>http://www.phpdeveloper.org/news/18927</link>
      <description><![CDATA[<p>
<i>Derick Rethans</i> has <a href="http://derickrethans.nl/readpreferences.html">a new post</a> to his site detailing some of the "read" preferences that you can customize in the latest versions of the MongoClient functionality in the MongoDB PHP extension for replica sets and sharing setups.
</p>
<blockquote>
Read Preferences are a new Replica Set and Sharding feature implemented by most <a href="http://mongodb.org/">MongoDB</a> drivers that are supported by <a href="http://10gen.com/">10gen</a>. This functionality requires MongoDB 2.2. In short, Read Preferences allow you to configure from which nodes you prefer the driver reads data from. In a Replica Set environment it is the driver that does the selection of the preferred node, and in a Sharded environment it is the mongos process that routes queries according to the defined Read Preferences.
</blockquote>
<p>
He starts with a look at the read preference types (like "primary", "secondary" and "nearest") how the connection manager works to handle each type. He includes some code samples showing how to configure your MongoClient connections to use these various types of preferences. He also introduces the concept of "tags" for the replica set - aliases to make them a bit easier to identify when making a connection and how to define them in the connection string.
</p>]]></description>
      <pubDate>Thu, 20 Dec 2012 13:41:24 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Derick Rethans: Debugging Connections with the MongoDB PHP driver]]></title>
      <guid>http://www.phpdeveloper.org/news/18873</guid>
      <link>http://www.phpdeveloper.org/news/18873</link>
      <description><![CDATA[<p>
<i>Derick Rethans</i> has a new post that the developers out there using MongoDB in their applications will find useful - a look at <a href="http://derickrethans.nl/mongodb-debugging.html">debugging your connections</a> with the PHP driver (and what kind of information it can provide).
</p>
<blockquote>
In a previous <a href="http://derickrethans.nl/mongodb-connection-handling.html">article</a> I already mentioned that the 1.3 version of the MongoDB driver has improved logging functionality to aid with debugging connection issues. I've already briefly introduced MongoClient::<a href="http://www.php.net/manual/en/mongoclient.getconnections.php">getConnections()</a>, but it provides a bit more information than I have already shown. The other improvement are changes to the <a href="http://www.php.net/manual/en/class.mongolog.php">MongoLog</a> class.
</blockquote>
<p>
He includes details on the information that comes back from the MongoDB "getConnections" call including the hash of the connection, the "last ping" time, connection type and a set of tags. He also shows how to enable the <a href="http://www.php.net/manual/en/class.mongolog.php">Mongolog</a> logging, the levels of logging it allows and what kind of log messages you can expect it to output.
</p>]]></description>
      <pubDate>Tue, 11 Dec 2012 10:20:13 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Derick Rethans: Connection Handling with the MongoDB PHP driver]]></title>
      <guid>http://www.phpdeveloper.org/news/18839</guid>
      <link>http://www.phpdeveloper.org/news/18839</link>
      <description><![CDATA[<p>
Continuing on with his look at the newly released version of the MongoDB driver for PHP <i>Derick Rethans</i> has <a href="http://derickrethans.nl/mongodb-connection-handling.html">posted more detail</a> about the advanced connection handling options this new driver version provides.
</p>
<blockquote>
The 1.3 release series of the PHP <a href="http://mongodb.org/">MongoDB</a> driver features a rewritten connection handling library. This is quite a large change and changes how the PHP driver deals with persistent connections and connection pooling.
</blockquote>
<p>
He starts with an example of a v1.2 driver connection, how the connection is requested from a pool and how, based on the integration of a worker into the connection process, v1.3 handles the connection requests. He includes a bit about replica set connections and authentication connections, complete with PHP code examples showing them in practice.
</p>]]></description>
      <pubDate>Tue, 04 Dec 2012 10:54:15 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DZone.com: Setting Up MongoDB on a Mac]]></title>
      <guid>http://www.phpdeveloper.org/news/18640</guid>
      <link>http://www.phpdeveloper.org/news/18640</link>
      <description><![CDATA[<p>
In <a href="http://java.dzone.com/articles/setting-mongodb-mac">this new post</a> to DZone.com <i>Andy Hawthorne</i> explains how to <a href="http://java.dzone.com/articles/setting-mongodb-mac">install MongoDB on OSX</a> and get a local PHP working with it.
</p>
<blockquote>
MongoDB is a document oriented, NoSQL database. It is gathering momentum and popularity amongst developers because it is flexible, and scalable at the same time. In this article I will describe how I got it set up and working on my Mac running OS X 10.8.2 and MAMP with PHP 5.2.17, and PHP 5.3.6.
</blockquote>
<p>
They go a bit simpler route than trying to compile it yourself by using <a href="http://fastdl.mongodb.org/osx/mongodb-osx-x86_64-2.0.2.tgz">the binaries</a> direct from the source. Instructions are included to test the installation, insert a record and how to <a href="https://github.com/mongodb/mongo-php-driver/downloads">install the MongoDB PHP driver</a> for a MAMP installation. It's a shared object, though, so it's not specific to MAMP and could be installed even on the local OSX PHP functionality.
</p>]]></description>
      <pubDate>Mon, 22 Oct 2012 11:31:32 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Derick Rethans: Derick's MongoDB tour]]></title>
      <guid>http://www.phpdeveloper.org/news/18379</guid>
      <link>http://www.phpdeveloper.org/news/18379</link>
      <description><![CDATA[<p>
If you're interested in hearing about MongoDB (and PHP) and are living on the southeast coast of the US, you're in luck - <i>Derick Rethans</i> is <a href="http://derickrethans.nl/mongodb-tour.html">making a tour</a> of the area and hitting several major user groups along the way.
</p>
<blockquote>
It has been a while since I have written anything. In the last few months I have been busy rewriting the connection handling parts of the <a href="http://pecl.php.net/mongodb">MongoDB driver for PHP</a>. [...] Some time ago, my friend <a href="http://www.khankennels.com/blog/">Ligaya Turmelle</a> suggested that I should come and talk at the <a href="http://www.meetup.com/JaxPHP-JaxWeb/">JaxPHP/JaxWeb</a>, the PHP and web developers usergroup in Jacksonville, Florida. And while I was there, why not visit a few other user groups too?
</blockquote>
<p>
From September 18th through the 24th, he'll be visiting the following cities (and bringing swag with him):
</p>
<ul>
<li>Boca Raton, Florida
<lI>Orlando, Florida
<lI>Jacksonville, Floria
<li>Atlanta, Georgia
<li>Nashville, Tennessee 
</ul>]]></description>
      <pubDate>Mon, 20 Aug 2012 11:56:17 -0500</pubDate>
    </item>
  </channel>
</rss>
