 




<?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; SQL server 2005 performance tuning</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/sql-server-2005-performance-tuning/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Wed, 22 May 2013 14:27:36 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Performance issues with a large table in SQL Server 2005</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/performance-issues-with-a-large-table-in-sql-server-2005/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/performance-issues-with-a-large-table-in-sql-server-2005/#comments</comments>
		<pubDate>Sun, 17 May 2009 00:11:01 +0000</pubDate>
		<dc:creator>Thecoolestguy</dc:creator>
				<category><![CDATA[SQL Server 2005 performance]]></category>
		<category><![CDATA[SQL server 2005 performance tuning]]></category>
		<category><![CDATA[SQL Server query optimization]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I have an application that is managing inventory for a company that has multiple locations. Items are being inserted into an inventory table roughly every 5-6 seconds from three locations. At the same time, this company is packing inventory in boxes in order to fulfill orders. I have a table setup for this in which [...]]]></description>
				<content:encoded><![CDATA[<p>I have an application that is managing inventory for a company that has multiple locations. Items are being inserted into an inventory table roughly every 5-6 seconds from three locations. </p>
<p>At the same time, this company is packing inventory in boxes in order to fulfill orders. I have a table setup for this in which inserts are made for an inventory id and a box id (tied to a purchase order table) to show when an item has been packed and is no longer in inventory. Roughly 6000 items are being added per day into inventory as well as being shipped out of inventory. </p>
<p>Before an item is being shipped &#8211; I have to first check the inventory table to make sure the item exists in inventory and also need to check the shipping table to make sure the item hasn&#8217;t been shipped. I&#8217;m also checking these tables on the sales side to verify when an order has been completed. These two tables are being hit every few seconds both with reads and writes.</p>
<p>I&#8217;m running into some performance issues as the size of my table is growing. I&#8217;ve been researching the problem and have a couple of ideas on how to fix this &#8211; but wanted to check here first to see if I&#8217;m on the right track.</p>
<p>1. Indexing this table in order to get better performance during the lookups. From what I&#8217;ve read, this will improve the select queries &#8211; but will slow down the inserts since the table will be re-indexed after each insert. Since I&#8217;m inserting into these tables every couple of seconds &#8211; I&#8217;m wondering if having indexes on these tables might degrade performance instead of improving it.  </p>
<p>2. The queries are being performed via my application. Ie, a query checks to make sure the item is active in inventory &#8211; results are returned to the application and either an error is thrown or an insert statement is re-submitted to the SQL server. By moving this into a stored procedure &#8211; I&#8217;ll remove the network traffic associated with going back and forth between the application server and the sql server.</p>
<p>3. I&#8217;ve read a little about partioning and it sounds like this might help (ie, partioning on each of the location id&#8217;s) &#8211; but I have not gone into it enough to really know enough about it. </p>
<p>Hopefully my question was clear. Any advice or suggestions are appreciated.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/performance-issues-with-a-large-table-in-sql-server-2005/feed/</wfw:commentRss>
		<slash:comments>0</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/13 queries in 0.020 seconds using memcached
Object Caching 315/328 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-22 16:23:36 -->