<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Is it possible on iSeries that an index is defined keeping in mind an sql select criteriea however when the queryis run this index does not get used.</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/is-it-possible-on-i-series-that-an-index-is-defined-keeping-in-mind-an-sql-select-criteriea-however-when-the-queryis-run-this-index-does-not-get-used/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/is-it-possible-on-i-series-that-an-index-is-defined-keeping-in-mind-an-sql-select-criteriea-however-when-the-queryis-run-this-index-does-not-get-used/</link>
	<description></description>
	<lastBuildDate>Thu, 20 Jun 2013 11:12:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/is-it-possible-on-i-series-that-an-index-is-defined-keeping-in-mind-an-sql-select-criteriea-however-when-the-queryis-run-this-index-does-not-get-used/#comment-85771</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Fri, 24 Dec 2010 02:41:53 +0000</pubDate>
		<guid isPermaLink="false">#comment-85771</guid>
		<description><![CDATA[Yes, it is possible. It is even likely.

Most indexes are not used in most queries. You might have ten indexes over a table, but usually no more than one is used; and sometimes none are used. You might have an index over a column and reference the column in a WHERE or ORDER BY clause, and the index still might not be used.

To find out why an index is used or not used, follow Phil&#039;s advice. Run the query in debug. SQL will log messages about the choices it makes when debug is active.

iSeries Navigator also has a number of options that can help analyze how queries are run. Drill down into Databases and right-click on your system&#039;s database name. Select &#039;Run SQL Scripts...&#039;. Review the menu options to see what&#039;s available. Pay special attention to the VisualExplain menu item.

Tom]]></description>
		<content:encoded><![CDATA[<p>Yes, it is possible. It is even likely.</p>
<p>Most indexes are not used in most queries. You might have ten indexes over a table, but usually no more than one is used; and sometimes none are used. You might have an index over a column and reference the column in a WHERE or ORDER BY clause, and the index still might not be used.</p>
<p>To find out why an index is used or not used, follow Phil&#8217;s advice. Run the query in debug. SQL will log messages about the choices it makes when debug is active.</p>
<p>iSeries Navigator also has a number of options that can help analyze how queries are run. Drill down into Databases and right-click on your system&#8217;s database name. Select &#8216;Run SQL Scripts&#8230;&#8217;. Review the menu options to see what&#8217;s available. Pay special attention to the VisualExplain menu item.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: murrayinfosys</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/is-it-possible-on-i-series-that-an-index-is-defined-keeping-in-mind-an-sql-select-criteriea-however-when-the-queryis-run-this-index-does-not-get-used/#comment-85726</link>
		<dc:creator>murrayinfosys</dc:creator>
		<pubDate>Thu, 23 Dec 2010 23:18:45 +0000</pubDate>
		<guid isPermaLink="false">#comment-85726</guid>
		<description><![CDATA[JohnsonMumbai -
IBM has what I would call a Query Analyser.  If you are able to, run the job in Debug mode with full job loging. It should tell you why it took the path that it did. I do this all the time with RPG/SQL programs. It can make a HUGE difference.

Phil]]></description>
		<content:encoded><![CDATA[<p>JohnsonMumbai -<br />
IBM has what I would call a Query Analyser.  If you are able to, run the job in Debug mode with full job loging. It should tell you why it took the path that it did. I do this all the time with RPG/SQL programs. It can make a HUGE difference.</p>
<p>Phil</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/10 queries in 0.035 seconds using memcached
Object Caching 281/287 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-20 11:46:32 -->