 




<?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>IT Answers &#187; Indexes</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/database/indexes/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Fri, 24 May 2013 14:35:25 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Error copying indexes in DTS package</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/error-copying-indexes-in-dts-package/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/error-copying-indexes-in-dts-package/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 14:18:25 +0000</pubDate>
		<dc:creator>Bleeb</dc:creator>
				<category><![CDATA[DTS]]></category>
		<category><![CDATA[Indexes]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I have a DTS package in SQL Server 2000 that copies data from one database to another.  The copy indexes option is checked.  For almost a year this has worked fine until recently where the job is ending successfully but the indexes are not copying over.  At first it was maybe once or twice a [...]]]></description>
				<content:encoded><![CDATA[<p>I have a DTS package in SQL Server 2000 that copies data from one database to another.  The copy indexes option is checked.  For almost a year this has worked fine until recently where the job is ending successfully but the indexes are not copying over.  At first it was maybe once or twice a month it would happen and now it is almost every other day it happens.  Please help!</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/error-copying-indexes-in-dts-package/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Database Issues &#8211; Trying to prove that something has to be done</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/database-issues-trying-to-prove-that-something-has-to-be-done/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/database-issues-trying-to-prove-that-something-has-to-be-done/#comments</comments>
		<pubDate>Tue, 26 May 2009 14:16:16 +0000</pubDate>
		<dc:creator>Dcantwell</dc:creator>
				<category><![CDATA[AS/400]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Database issues]]></category>
		<category><![CDATA[Indexes]]></category>
		<category><![CDATA[iSeries]]></category>
		<category><![CDATA[iSeries Navigator]]></category>
		<category><![CDATA[Logical File]]></category>
		<category><![CDATA[PF]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL tables]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hello Everyone, I&#8217;m currently trying to prove a concept on why we should re-create our old existing PFs into SQL defined tables (Portability, performance, etc.). After taking a look at some files, I noticed an even larger problem that would ruin my chance of proving this concept. Unless some major changes happen, we won&#8217;t see [...]]]></description>
				<content:encoded><![CDATA[<p>Hello Everyone,</p>
<p>I&#8217;m currently trying to prove a concept on why we should re-create our old existing PFs into SQL defined tables (Portability, performance, etc.).  </p>
<p>After taking a look at some files, I noticed an even larger problem that would ruin my chance of proving this concept.  Unless some major changes happen, we won&#8217;t see any benefits from the change.</p>
<p>Here&#8217;s my situation:<br />
<b>88 Million records with over 150 Logical Files over one Physical File.</b></p>
<p>Am I crazy? Or, is that just ridiculous?</p>
<p>Apparently, this isn&#8217;t the only file.  I&#8217;ve found at least 5 to 6 more with the same problem.  I looked at some of our smaller files and they have an average of 20 &#8211; 30 logical files over that data.  </p>
<p>They also don&#8217;t seem to think this isn&#8217;t a major problem and we shouldn&#8217;t spend a lot of time on it.  </p>
<p>So, what I&#8217;m asking for is opinions and ideas on how to prove to that spending the time (And it will be a LOT of time) to analyze our database and get rid of all these problems.</p>
<p>Here&#8217;s my idea for an approach to each file:</p>
<li>Analyze all of the logical files and remove any not currently used</li>
<li>Check all programs using the logical files and remove if no longer used</li>
<li>Identify programs that should be re-written to eliminate logical files</li>
<li>Re-write said programs</li>
<li>Create history files to reduce the number of records</li>
<li>Convert PFs and LFs to Tables and indexes</li>
<p>Just taking a quick look at the Indexes(LFs) using iSeries Nav, I found a lot of information.  One thing I noticed in the &#8220;Last Build&#8221; column was they were last built in 2002.  I&#8217;m guessing even if I just rebuild those logical files we would see a performance boost.  But, what is considered rebuilding? Re-compiling?</p>
<p>I apologize for the lengthy post.  I have a lot more questions.  But, I just wanted to get a feel for some Ideas.</p>
<p>Thank you,<br />
Dave</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/database-issues-trying-to-prove-that-something-has-to-be-done/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Indexes and abstracts in SQL Server</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/indexes-and-abstracts-in-sql-server/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/indexes-and-abstracts-in-sql-server/#comments</comments>
		<pubDate>Mon, 29 Dec 2008 19:45:34 +0000</pubDate>
		<dc:creator>SQL Server Ask the Experts</dc:creator>
				<category><![CDATA[Abstracts]]></category>
		<category><![CDATA[Indexes]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[In regards to a SQL Server, what is an index? Also, what is an abstract, and could you please explain the types of both of these items?]]></description>
				<content:encoded><![CDATA[<p>In regards to a SQL Server, what is an index? Also, what is an abstract, and could you please explain the types of both of these items?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/indexes-and-abstracts-in-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>designing indexes</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/designing-indexes/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/designing-indexes/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 15:31:49 +0000</pubDate>
		<dc:creator>Sqloholic</dc:creator>
				<category><![CDATA[Database design]]></category>
		<category><![CDATA[Indexes]]></category>
		<category><![CDATA[JOIN statement]]></category>
		<category><![CDATA[Primary keys]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I have a question regarding database design. Lets assume that there is a table with 10 columns. I don&#8217;t have any single column which I can choose as candidate for Primary key. Though, combination of 5 columns can uniquely identify records. Here, I created an identity column as a PK and added UNIQUE constraint on [...]]]></description>
				<content:encoded><![CDATA[<p>I have a question regarding database design.<br />
Lets assume that there is a table with 10 columns. I don&#8217;t have any single column which I can choose as candidate for Primary key. Though, combination of 5 columns can uniquely identify records.<br />
Here, I created an identity column as a PK and added UNIQUE constraint on those 5 columns. I was thinking about creating non clustered index on these 5 columns.</p>
<p>These 5 columns are common to many tables and are ,hence, used while in JOIN &#038; WHERE clause.<br />
So, from performance perspective, it makes sense to have clustered index on columns which are widely used in Join clause. Joining on columns of clustered index is faster than that of non clustered index. </p>
<p>So, I am not being able to understand which option is better&#8230;<br />
clustered index on PK column<br />
OR<br />
Clustered Index on 5 columns.</p>
<p>I feel if I create a clustered Index on PK coulmn then I should also create a lookup table which contains<br />
PK column values each corresponding to comnbination of values from those 5 columns.<br />
In this way, pk column can also be used in joining. In such case, I will need lots of lookup table containing values for Identity key column(PK values) corresponding to combination of those 5 or more columns.<br />
One more thing: Identity column is like surrogate column. It doesn&#8217;t contains data which makes sense to any user instantly. </p>
<p>Please Advise,<br />
Thanks</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/designing-indexes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Analyzing Existing Indexes</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/analyzing-existing-indexes/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/analyzing-existing-indexes/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 21:02:56 +0000</pubDate>
		<dc:creator>Sqloholic</dc:creator>
				<category><![CDATA[Indexes]]></category>
		<category><![CDATA[SQL Server database]]></category>
		<category><![CDATA[SQL Server tables]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hello, I am trying to analyze existing indexes on few tables. I think I can do this by using system views like sys.db_dm_index_usagestats, physicalstats and operationalstats. I am here trying to figure out disk space used by each index, I/O stats ,fragmentation etc I am wondering if ,Apart these views, there are some other effective [...]]]></description>
				<content:encoded><![CDATA[<p>Hello,</p>
<p>I am trying to analyze existing indexes on few tables. I think I can do this by using system views like<br />
sys.db_dm_index_usagestats, physicalstats and operationalstats.<br />
I am here trying to figure out disk space used by each index, I/O stats ,fragmentation etc</p>
<p>I am wondering if ,Apart these views, there are some other effective measures for the same?<br />
For accessing these views, one needs to have VIEW DATABASE STATE permission. As of now, I don&#8217;t have it.</p>
<p>However,If  this is the only way to access information then,</p>
<p>Thanks</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/analyzing-existing-indexes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Backing up and restoring a LIVE database in SQL Server 2000</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/backing-up-and-restoring-a-live-database-in-sql-server-2000/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/backing-up-and-restoring-a-live-database-in-sql-server-2000/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 15:52:29 +0000</pubDate>
		<dc:creator>SQL Server Ask the Experts</dc:creator>
				<category><![CDATA[Database backup and recovery]]></category>
		<category><![CDATA[Indexes]]></category>
		<category><![CDATA[LIVE database]]></category>
		<category><![CDATA[SQL Server 2000]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I am using SQL Server 2000, and I backup and restore my LIVE database to a new backup server every night. Do you have any ideas as to why my restored database runs slow when compared to the LIVE database? Do I need to rebuilding indexes? Is there any way of backing up indexes as [...]]]></description>
				<content:encoded><![CDATA[<p>I am using SQL Server 2000, and I backup and restore my LIVE database to a new backup server every night.  Do you have any ideas as to why my restored database runs slow when compared to the LIVE database?  Do I need to rebuilding indexes?  Is there any way of backing up indexes as part of the main backup?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/backing-up-and-restoring-a-live-database-in-sql-server-2000/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Is the data in a SQL Server 2000 table still available for external applications, during editing or adding indexes via the Enterprise Manager?</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/is-the-data-in-a-sql-server-2000-table-still-available-for-external-applications-during-editing-or-adding-indexes-via-the-enterprise-manager/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/is-the-data-in-a-sql-server-2000-table-still-available-for-external-applications-during-editing-or-adding-indexes-via-the-enterprise-manager/#comments</comments>
		<pubDate>Wed, 14 May 2008 03:24:18 +0000</pubDate>
		<dc:creator>SQL Server Ask the Experts</dc:creator>
				<category><![CDATA[Data availability]]></category>
		<category><![CDATA[Enterprise Manager]]></category>
		<category><![CDATA[Indexes]]></category>
		<category><![CDATA[SQL Server 2000]]></category>
		<category><![CDATA[SQL Server Enterprise Manager]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Is the data in a SQL Server 2000 table still available for external applications, during editing or adding indexes via the Enterprise Manager?]]></description>
				<content:encoded><![CDATA[<p>Is the data in a SQL Server 2000 table still available for external applications, during editing or adding indexes via the Enterprise Manager?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/is-the-data-in-a-sql-server-2000-table-still-available-for-external-applications-during-editing-or-adding-indexes-via-the-enterprise-manager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DB2 indexes and Crystal Reports</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/db2-indexes-and-crystal-reports/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/db2-indexes-and-crystal-reports/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 10:31:20 +0000</pubDate>
		<dc:creator>AJ52</dc:creator>
				<category><![CDATA[AS/400 DB2]]></category>
		<category><![CDATA[Crystal Reports]]></category>
		<category><![CDATA[Crystal Reports 8]]></category>
		<category><![CDATA[DB2]]></category>
		<category><![CDATA[Indexes]]></category>
		<category><![CDATA[V5R1]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Is it possible to access DB2 (V5R1) indexes from the Visual Linking Expert screen in Crystal Reports(8) and if so how?]]></description>
				<content:encoded><![CDATA[<p>Is it possible to access DB2 (V5R1) indexes from the Visual Linking Expert screen in Crystal Reports(8) and if so how?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/db2-indexes-and-crystal-reports/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why is the query using the index even though the perecentage of unique values is 52%?</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/why-is-the-query-using-the-index-even-though-the-perecentage-of-unique-values-is-52/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/why-is-the-query-using-the-index-even-though-the-perecentage-of-unique-values-is-52/#comments</comments>
		<pubDate>Mon, 03 Mar 2008 05:09:02 +0000</pubDate>
		<dc:creator>Abbi</dc:creator>
				<category><![CDATA[Indexes]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL performance]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I have a table with no primary key and a non-clustered composite index of two columns. When I look at the number of distinct values (selectivity ratio), the table has a ratio of 52% unique values. I thought an index should be at least 90% unique in order for it to be used. Yet when [...]]]></description>
				<content:encoded><![CDATA[<p>I have a table with no primary key and a non-clustered composite index of two columns.  When I look at the number of distinct values (selectivity ratio), the table has a ratio of 52% unique values.  I thought an index should be at least 90% unique in order for it to be used.  Yet when I run the query with the index, it only takes 2 seconds to run.  When I drop the index, it takes 1.25 minutes to run.  Why is it using the index when the index is only 52% unique?</p>
<p>One of the examples always given is to never have an index on a column that is a flag because it only has 50% distinct values (YES, NO).  So, what am I misunderstanding here.</p>
<p>Thank you!</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/why-is-the-query-using-the-index-even-though-the-perecentage-of-unique-values-is-52/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>execution plan is same even though it takes 10 times longer to run</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/execution-plan-is-same-even-though-it-takes-10-times-longer-to-run/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/execution-plan-is-same-even-though-it-takes-10-times-longer-to-run/#comments</comments>
		<pubDate>Mon, 03 Mar 2008 05:07:40 +0000</pubDate>
		<dc:creator>Abbi</dc:creator>
				<category><![CDATA[Execution Plan]]></category>
		<category><![CDATA[Indexes]]></category>
		<category><![CDATA[Performance/Tuning]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I have a query that accesses a table with a non-clustered index. When I drop the index and run the query, it takes 1.25 minutes to run. With the index, it takes 2 seconds to run. Yet, the execution plan is the same with or without the index. How can that be? Thank you!]]></description>
				<content:encoded><![CDATA[<p>I have a query that accesses a table with a non-clustered index.  When I drop the index and run the query, it takes 1.25 minutes to run.  With the index, it takes 2 seconds to run.  Yet, the execution plan is the same with or without the index.  How can that be?</p>
<p>Thank you!</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/execution-plan-is-same-even-though-it-takes-10-times-longer-to-run/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</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/20 queries in 0.031 seconds using memcached
Object Caching 943/1045 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-24 15:28:52 -->