<?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>Tue, 21 May 2013 04:48:01 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[SitePoint PHP Blog: MySQL Transactions & Why They Can't Be Emulated in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/15584</guid>
      <link>http://www.phpdeveloper.org/news/15584</link>
      <description><![CDATA[<p>
On the SitePoint blog there's a new article from <i>Craig Buckler</i> stating that <a href="http://blogs.sitepoint.com/2010/12/15/mysql-transactions-php-emulation/">MySQL transactions can't be emulated in PHP</a> and shouldn't be discounted despite many developers seeing them as not much more than a performance hit.
</p>
<blockquote>
My recent article, "<a href="http://blogs.sitepoint.com/2010/11/19/mysql-mistakes-php-developers">Top 10 MySQL Mistakes Made by PHP Developers</a>" was far more controversial than I expected. Several of the more intriguing responses were from PHP coders who considered transactions to be an unnecessary overhead. With good-quality PHP code, they argued, you don't need transactions or MySQL's InnoDB storage engine. It's certainly true you don't always need transactions.
</blockquote>
<p>
He gives an example of a situation where database-based transactions would be very useful (inserting customer information) and points out that, despite the best intentions of developers, reducing as many layers and connections between SQL and code is a good thing. Transactions help you conform to the ACID ideas and keep data integrity by only having things in the database that were successful. He includes a small bit on using transactions as well.
</p>]]></description>
      <pubDate>Wed, 15 Dec 2010 12:47:44 -0600</pubDate>
    </item>
  </channel>
</rss>
