<?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>Sun, 26 May 2013 03:49:30 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Sameer Borate: Efficiently Replicating RETS data to MySQL]]></title>
      <guid>http://www.phpdeveloper.org/news/19542</guid>
      <link>http://www.phpdeveloper.org/news/19542</link>
      <description><![CDATA[<p>
<i>Sameer Borate</i> has a new post to his site that shares how he <a href="http://www.codediesel.com/data/efficiently-replicating-rets-data-to-mysql/">converted a RETS database to MySQL</a> with the help of a PHP library, <a href="https://github.com/troydavisson/PHRETS/wiki">PHPRETS</a>.
</p>
<blockquote>
A recent project of mine entailed replicating a <a href="http://www.reso.org/rets">RETS</a> database on a local MySQL database server. The client had a new real-estate mobile search app in development and wanted to have a local copy of the RETS database for search queries instead of a remote RETS server. [...] Replicating RETS data rather than using the live version is slightly complex, however. In order to replicate the RETS data into your own local database, a series of processes are needed in order to make sure the data you have is both updated and in sync with the server. 
</blockquote>
<p>He breaks it down into three main steps with some sample code for each:</p>
<ul>
<li>Grabbing the complete database once
<li>Keeping the data in sync
<li>Ensuring the cron job is executed on regular intervals
</ul>
Link: http://www.codediesel.com/data/efficiently-replicating-rets-data-to-mysql]]></description>
      <pubDate>Fri, 03 May 2013 10:26:33 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ulf Wendel's Blog: PECL/mysqlnd_ms compared to a classic]]></title>
      <guid>http://www.phpdeveloper.org/news/16918</guid>
      <link>http://www.phpdeveloper.org/news/16918</link>
      <description><![CDATA[<p>
<i>Ulf Wendel</i> has a new post that <a href="http://blog.ulf-wendel.de/?p=318">compares the performance</a> of a classic method for using the mysqlnd plugin in MySQL replication to <a href=http://de2.php.net/mysqlnd_ms">mysqlnd_ms</a>, the replication and load balancing plugin for the mysqlnd driver (that works with the mysql and mysqli functionality and is, as of <a href="http://phpdeveloper.org/news/16913">this beta</a> of PHP, the default driver for MySQL connections).
</p>
<blockquote>
Recently I was asked if <a href="http://de2.php.net/mysqlnd_ms">PECL/mysqlnd_ms</a> should be used to add MySQL replication support to a yet to be developed PHP application. The <a href="http://blog.ulf-wendel.de/php.net/mysqlnd">mysqlnd</a> plugin, which supports all PHP MySQL extensions (PDO, mysqli, mysql), stood up against a classical, simple, proven and fast approach: one connection for reads, one connection for writes. Let's compare. This is a bit of an unfair challenge, because PECL/mysqlnd_ms was designed as a drop-in for existing applications, not optimized for those starting from scratch, *yell*... The plugin stands up quite well, anyway!
</blockquote>
<p>
He starts with a look at the "classical pattern" of using a factory or singleton to make a database object instance that gives back different connections for reads versus writes (slave vs master). The mysqlnd_ms plugin allows you to define configuration settings to tell the queries to automatically go to certain places for different actions. For example, you could use "master_on_write" to tell it to use a master node if you're doing an INSERT or UPDATE versus a SELECT. He also shows a more complex example using a SQL hint and one issue that might come from the "human element" - not paying attention to database character sets.
</p>]]></description>
      <pubDate>Wed, 28 Sep 2011 08:43:57 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Federico Cargnelutti's Blog: Database Replication Adapter for Zend Framework Applications]]></title>
      <guid>http://www.phpdeveloper.org/news/13332</guid>
      <link>http://www.phpdeveloper.org/news/13332</link>
      <description><![CDATA[<p>
<i>Federico Cargnelutti</i> has <a href="http://blog.fedecarg.com/2009/10/02/database-replication-adapter-for-zend-framework-applications/">added a new post</a> to his blog today looking at a database replication adapter he's created for the Zend Framework - the <a href="http://fedecarg.com/repositories/show/zfreplicationadapter">ReplicationAdapter</a>.
</p>
<blockquote>
In 2008, Paul M. Jones <a href="http://www.solarphp.com/blog/read/19-adapter-for-master-slave-my-sql-setups">announced</a> the release of an SQL adapter that allows Solar users to connect to master/slave database installations. My first reaction was: Great! This will inspire other FOSS developers to create similar components. And guess what, it did. I wrote my own ReplicationAdapter. It's not great, but it's flexible enough to support the most commonly used replication scenarios:
</blockquote>
<p>
He gives examples of how it can be used for single-master replication, multi-master replication and how the adapter can be used to create a distributed caching system for database connections. A brief Zend Framework-based example is also included.
</p>]]></description>
      <pubDate>Mon, 05 Oct 2009 09:33:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Brian Moon's Blog: Putting files into a database]]></title>
      <guid>http://www.phpdeveloper.org/news/8898</guid>
      <link>http://www.phpdeveloper.org/news/8898</link>
      <description><![CDATA[<p>
In a <a href="http://doughboy.wordpress.com/2007/10/19/putting-files-into-a-database/">recent blog post</a>, <i>Brian Moon</i> talks about doing something he never thought he'd do - storing files in a database. He does, however, have two legitimate places he's found it useful.
</p>
<blockquote>
Now, most people will say you should never do this.  And lots of time they are right.  And once upon a time I agreed with them without question.  Then I started living in the real world where sometimes you have to do things you never thought you would.  Here are the two places where I stores files in a database.
</blockquote>
<p>
His places are in Phorum, using the method to keep the system's database and file attachments contained and easier to move around, and in the replication of their databases, making it simple to have images for the deals on <a href="http://dealnews.com/">dealnews</a> transferable to the various slave databases.
</p>
]]></description>
      <pubDate>Wed, 24 Oct 2007 11:24:00 -0500</pubDate>
    </item>
  </channel>
</rss>
