<?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>84 Bytes &#187; Others</title>
	<atom:link href="http://www.84bytes.com/category/others/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.84bytes.com</link>
	<description>A web development blog</description>
	<lastBuildDate>Mon, 04 Apr 2011 14:55:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>MySQL Query Performance Tips</title>
		<link>http://www.84bytes.com/2008/10/14/mysql-query-performance-tips/</link>
		<comments>http://www.84bytes.com/2008/10/14/mysql-query-performance-tips/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 12:44:55 +0000</pubDate>
		<dc:creator>Richard Wong</dc:creator>
				<category><![CDATA[Others]]></category>
		<category><![CDATA[Tools & Tips]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.84bytes.com/?p=130</guid>
		<description><![CDATA[Almost all of the modern web applications involve the use of relational database. So the performance of your applications are very much affected by the quality of the SQL queries you run. Here are some simple performance tips from MYSQL forge that you should consider when writing queries. Use EXPLAIN to profile the query execution [...]]]></description>
			<content:encoded><![CDATA[<p>Almost all of the modern web applications involve the use of relational database. So the performance of your applications are very much affected by the quality of the SQL queries you run. Here are some simple performance tips from <a href="http://forge.mysql.com/wiki/Top10SQLPerformanceTips">MYSQL forge</a> that you should consider when writing queries.<a href="http://forge.mysql.com/wiki/Top10SQLPerformanceTips"><br />
</a></p>
<blockquote>
<ol>
<li> Use EXPLAIN to profile the query execution plan</li>
<li> Use <a class="external text" title="http://dev.mysql.com/doc/refman/5.0/en/slow-query-log.html" rel="nofollow" href="http://dev.mysql.com/doc/refman/5.0/en/slow-query-log.html" target="_blank">Slow Query Log</a> (always have it on!)</li>
<li> Don&#8217;t use DISTINCT when you have or could use GROUP BY</li>
<li> Insert performance
<ol>
<li> Batch INSERT and REPLACE</li>
<li> Use LOAD DATA instead of INSERT</li>
</ol>
</li>
<li> LIMIT m,n may not be as fast as it sounds</li>
<li> Don&#8217;t use ORDER BY RAND() if you have &gt; ~2K records</li>
<li> Use SQL_NO_CACHE when you are SELECTing frequently updated data or large sets of data</li>
<li> Avoid wildcards at the start of LIKE queries</li>
<li> Avoid correlated subqueries and in select and where clause (try to avoid in)</li>
<li> ORDER BY and LIMIT work best with equalities and covered indexes</li>
<li> Separate text/blobs from metadata, don&#8217;t put text/blobs in results if you don&#8217;t need them</li>
<li> Delete small amounts at a time if you can</li>
<li> Make similar queries consistent so cache is used</li>
<li> Don&#8217;t use deprecated features</li>
<li> Turning OR on multiple index fields (&lt;5.0) into UNION may speed things up (with LIMIT), after 5.0 the index_merge should pick stuff up.</li>
<li> Use INSERT &#8230; ON DUPLICATE KEY update (INSERT IGNORE) to avoid having to SELECT</li>
</ol>
</blockquote>
<p>Now if you know all the above tips, then may be you want to start looking at database scaling, design and more from <a href="http://forge.mysql.com/wiki/Top10SQLPerformanceTips">MYSQL forge</a>.</p>
<p>Here are some more detailed articles about optimizing MySQL for those of you want to get your hands dirty:</p>
<ul>
<li><a rel="bookmark" href="http://www.softdevtube.com/?p=86">MySQL Queries Optimization by Peter Zaitsev</a></li>
<li><a href="http://hackmysql.com/case2">Table Design and MySQL Index Details</a></li>
<li><a rel="bookmark" href="http://www.ajohnstone.com/archives/mysql-php-performance-optimization-tips/">MySQL &amp; PHP Performance Optimization Tips</a></li>
<li><a href="http://dev.mysql.com/tech-resources/presentations/presentation-oscon2000-20000719/index.html">MySQL Presentations: Optimizing MySQL</a></li>
</ul>
<img src="http://www.84bytes.com/wordpress/?ak_action=api_record_view&id=130&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.84bytes.com/2008/10/14/mysql-query-performance-tips/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>New Look for 84 Bytes</title>
		<link>http://www.84bytes.com/2008/08/25/new-look-for-84-bytes/</link>
		<comments>http://www.84bytes.com/2008/08/25/new-look-for-84-bytes/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 22:42:19 +0000</pubDate>
		<dc:creator>Richard Wong</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://www.84bytes.com/?p=75</guid>
		<description><![CDATA[I have finally created my own theme for this blog. This is still a very early version which I will be busy updating for the coming weeks. The plan is to release often, release small :p This is what the old design looks like And it was based on dsanctuary. I hope everyone will like [...]]]></description>
			<content:encoded><![CDATA[<p>I have finally created my own theme for this blog. This is still a very early version which I will be busy updating for the coming weeks. The plan is to release often, release small :p</p>
<p>This is what the old design looks like</p>
<p><a href="http://www.84bytes.com/media/2008/08/84-bytes-development-design-applications-and-the-web_1219703286979.png"><img class="alignnone size-full wp-image-76" title="old_design_screenshot" src="http://www.84bytes.com/media/2008/08/84-bytes-development-design-applications-and-the-web_1219703286979.png" alt="Old 84 Bytes Design Screenshot" width="500" height="293" /></a></p>
<p>And it was based on <a href="http://topwpthemes.com/dsanctuary/">dsanctuary</a>.</p>
<p>I hope everyone will like this new design. Feel free to leave some feedback.</p>
<img src="http://www.84bytes.com/wordpress/?ak_action=api_record_view&id=75&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.84bytes.com/2008/08/25/new-look-for-84-bytes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Salary and Demand Trend for Javascript Developer in UK</title>
		<link>http://www.84bytes.com/2008/06/01/javascript-demand-and-salary-trend-in-uk/</link>
		<comments>http://www.84bytes.com/2008/06/01/javascript-demand-and-salary-trend-in-uk/#comments</comments>
		<pubDate>Sun, 01 Jun 2008 20:17:11 +0000</pubDate>
		<dc:creator>Richard Wong</dc:creator>
				<category><![CDATA[Others]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jobs]]></category>

		<guid isPermaLink="false">http://www.84bytes.com/?p=8</guid>
		<description><![CDATA[Interesting finding from ITJobsWatch. Although, the demand is rapidly increasing, the average salary is pretty stable. Is this because there are more Javascript developer out there? The chart provides the 3-month moving total beginning in 2004 of permanent IT jobs citing JavaScript Developer within the UK as a proportion of the total demand within the [...]]]></description>
			<content:encoded><![CDATA[<p>Interesting finding from <a href="http://www.itjobswatch.co.uk" target="_blank">ITJobsWatch</a>. Although, the demand is rapidly increasing, the average salary is pretty stable. Is this because there are more Javascript developer out there?</p>
<blockquote><p><em>The chart provides the 3-month moving total beginning in 2004 of permanent IT jobs citing <strong>JavaScript Developer</strong> within the UK as a proportion of the total demand within the <strong>Job Titles</strong> category.</em></p>
<p><a href="http://www.84bytes.com/media/2008/06/permanent-demand-trendaspx.png"><img class="alignnone size-full wp-image-10" title="permanent-demand-trendaspx" src="http://www.84bytes.com/media/2008/06/permanent-demand-trendaspx.png" alt="" /></a></p>
<p><em>The chart provides the 3-month moving average for salaries quoted in permanent IT jobs citing <strong>JavaScript Developer</strong> within the UK.</em></p>
<p><a href="http://www.84bytes.com/media/2008/06/salary-trendaspx.png"><img class="alignnone size-full wp-image-11" title="salary-trendaspx" src="http://www.84bytes.com/media/2008/06/salary-trendaspx.png" alt="" /></a></p></blockquote>
<p>If you are a IT worker in the UK, go and find out whether you are above or below the curve now!</p>
<p><a href="http://www.itjobswatch.co.uk">ITJobsWatch</a></p>
<img src="http://www.84bytes.com/wordpress/?ak_action=api_record_view&id=8&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.84bytes.com/2008/06/01/javascript-demand-and-salary-trend-in-uk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

