<?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>Forwarded Records &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/forwarded-records/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Thu, 14 Sep 2017 18:21:54 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>SQL Server: Must know &#8211; the Forwarded Records in HEAP Table</title>
		<link>https://www.dbrnd.com/2017/11/sql-server-must-know-the-forwarded-records-in-heap-table/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Thu, 02 Nov 2017 16:16:31 +0000</pubDate>
				<category><![CDATA[Database Theory]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[Forwarded Records]]></category>
		<category><![CDATA[fragmentation]]></category>
		<category><![CDATA[heap table]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[SQL Server Error]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tuning]]></category>
		<category><![CDATA[SQL Server Programming]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[TSQL]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=6296</guid>

					<description><![CDATA[<div><img width="600" height="400" src="https://www.dbrnd.com/wp-content/uploads/2016/12/PostgreSQLFragmentation.jpg" class="attachment-post-image size-post-image wp-post-image" alt="postgresql fragmentation" decoding="async" fetchpriority="high" srcset="https://www.dbrnd.com/wp-content/uploads/2016/12/PostgreSQLFragmentation.jpg 600w, https://www.dbrnd.com/wp-content/uploads/2016/12/PostgreSQLFragmentation-300x200.jpg 300w, https://www.dbrnd.com/wp-content/uploads/2016/12/PostgreSQLFragmentation-150x100.jpg 150w" sizes="(max-width: 600px) 100vw, 600px" /></div>In this post, I am sharing an important note on Forwarded Records in the Heap table of SQL Server. Whenever DBA or Developer is facing performance issue, they are always talking about the table or index fragmentation, but no-one is discussing the Forwarded Records. What is heap Table Simple Example to understand Forwarded Records: You [&#8230;]]]></description>
										<content:encoded><![CDATA[<div><img width="600" height="400" src="https://www.dbrnd.com/wp-content/uploads/2016/12/PostgreSQLFragmentation.jpg" class="attachment-post-image size-post-image wp-post-image" alt="postgresql fragmentation" decoding="async" srcset="https://www.dbrnd.com/wp-content/uploads/2016/12/PostgreSQLFragmentation.jpg 600w, https://www.dbrnd.com/wp-content/uploads/2016/12/PostgreSQLFragmentation-300x200.jpg 300w, https://www.dbrnd.com/wp-content/uploads/2016/12/PostgreSQLFragmentation-150x100.jpg 150w" sizes="(max-width: 600px) 100vw, 600px" /></div><p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fsql-server-must-know-the-forwarded-records-in-heap-table%2F&amp;linkname=SQL%20Server%3A%20Must%20know%20%E2%80%93%20the%20Forwarded%20Records%20in%20HEAP%20Table" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fsql-server-must-know-the-forwarded-records-in-heap-table%2F&amp;linkname=SQL%20Server%3A%20Must%20know%20%E2%80%93%20the%20Forwarded%20Records%20in%20HEAP%20Table" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fsql-server-must-know-the-forwarded-records-in-heap-table%2F&amp;linkname=SQL%20Server%3A%20Must%20know%20%E2%80%93%20the%20Forwarded%20Records%20in%20HEAP%20Table" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fsql-server-must-know-the-forwarded-records-in-heap-table%2F&amp;linkname=SQL%20Server%3A%20Must%20know%20%E2%80%93%20the%20Forwarded%20Records%20in%20HEAP%20Table" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fsql-server-must-know-the-forwarded-records-in-heap-table%2F&amp;linkname=SQL%20Server%3A%20Must%20know%20%E2%80%93%20the%20Forwarded%20Records%20in%20HEAP%20Table" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fsql-server-must-know-the-forwarded-records-in-heap-table%2F&amp;linkname=SQL%20Server%3A%20Must%20know%20%E2%80%93%20the%20Forwarded%20Records%20in%20HEAP%20Table" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fsql-server-must-know-the-forwarded-records-in-heap-table%2F&#038;title=SQL%20Server%3A%20Must%20know%20%E2%80%93%20the%20Forwarded%20Records%20in%20HEAP%20Table" data-a2a-url="https://www.dbrnd.com/2017/11/sql-server-must-know-the-forwarded-records-in-heap-table/" data-a2a-title="SQL Server: Must know – the Forwarded Records in HEAP Table"></a></p><p>In this post, I am sharing an important note on Forwarded Records in the Heap table of SQL Server. Whenever DBA or Developer is facing performance issue, they are always talking about the table or index fragmentation, but no-one is discussing the Forwarded Records. </p>
<blockquote class="wp-embedded-content" data-secret="zyVYXmfaV7"><p><a href="https://www.dbrnd.com/2015/08/what-is-heap-table/">What is heap Table</a></p></blockquote>
<p><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  src="https://www.dbrnd.com/2015/08/what-is-heap-table/embed/#?secret=zyVYXmfaV7" data-secret="zyVYXmfaV7" width="600" height="338" title="&#8220;What is heap Table&#8221; &#8212; Database Research &amp; Development" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></p>
<p><strong>Simple Example to understand Forwarded Records:</strong></p>
<blockquote><p>You create a heap table, and one of the column types is VARCHAR(200).<br />
You inserted 100000 records and added a small size of the string in VARCHAR(200) like &#8220;dbrnd&#8221; value which is only VARCHAR(5).</p>
<p>Now next, you require updating the value from &#8220;dbrnd&#8221; to &#8220;Database Research &#038; Development&#8221; which is now VARCHAR(31).<br />
Previously, we stored our data based on VARCHAR(5), but while updating we need VARCHAR(31).</p>
<p>Before the update, all data correctly save in data page and for new update no more free space available on the data page. So SQL Server internally moves new data into the new page and assigned a new Relative Identifier (RID).</p>
<p>Now old page contains forwarding pointer to new RID and new records also back pointer to old records. </p></blockquote>
<p><em>&#8211; Called as Forwarded Records and which is also one type of internal fragmentation. </em></p>
<p><em>The biggest drawback of Forwarded Record is, it requires high I/O because SQL Server has to jump between the old data page and new data page for getting data. </em></p>
<p><strong>Few more following topics, which I will publish from tomorrow:</strong><br />
How to find the Forwarded Records?<br />
How to remove Forwarded Records?</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
