<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Gabriel Jones &#187; sql</title>
	<atom:link href="http://gabrieljones.com/category/sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://gabrieljones.com</link>
	<description>Web Developer Weblog</description>
	<lastBuildDate>Tue, 30 Mar 2010 21:15:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Optimizing PHP &amp; SQL</title>
		<link>http://gabrieljones.com/optimizing-php-sql/</link>
		<comments>http://gabrieljones.com/optimizing-php-sql/#comments</comments>
		<pubDate>Wed, 18 May 2005 01:24:44 +0000</pubDate>
		<dc:creator>Gabriel</dc:creator>
				<category><![CDATA[performance]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://gabrieljones.com/?p=3</guid>
		<description><![CDATA[Commonly we see php being used as an interface between the client and the database providing the information. Very few implementations utilize optimization, and thus, reduce performance.  Listed below are many techniques that should be used to optimize php to sql communication.

Do not use SELECT * unless you must
Use SELECT priorities for better control
SELECT [...]]]></description>
			<content:encoded><![CDATA[<p>Commonly we see php being used as an interface between the client and the database providing the information. Very few implementations utilize optimization, and thus, reduce performance.  Listed below are many techniques that should be used to optimize php to sql communication.</p>
<ol>
<li><span>Do not use SELECT * unless you must</span></li>
<li><span>Use SELECT priorities for better control</span></li>
<li><span>SELECT var IN ([constance,...]) is very fast</span></li>
<li><span>Use default values for INSERT when you can</span></li>
<li><span>Do not create indexes you are not going to use</span></li>
<li><span>Indexes are good for reads, but bad for writes</span></li>
<li><span>When joining tables, use numbers instead of strings if you can</span></li>
<li><span>Create your tables with a fixed-table format if possible</span></li>
<li><span>Use OPTIMIZE TABLE and ANALYZE TABLE regularly</span></li>
</ol>
<p>There are other techniques both in php design and database design that will optimize performance, but in terms of php and sql communication, this list will get you running more efficiently.</p>
]]></content:encoded>
			<wfw:commentRss>http://gabrieljones.com/optimizing-php-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
