<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Visualizing Data File Layout III</title><link>http://sqlblog.com/blogs/merrill_aldrich/archive/2013/01/28/visualizing-data-file-layout-iii.aspx</link><description>This is part three of a blog series illustrating a method to render the file structure of a SQL Server database into a graphic visualization. Previous Installments: Part 1 Part 2 Those that have been reading this series might be be thinking, “Is he going</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>re: Visualizing Data File Layout III</title><link>http://sqlblog.com/blogs/merrill_aldrich/archive/2013/01/28/visualizing-data-file-layout-iii.aspx#47378</link><pubDate>Tue, 29 Jan 2013 13:07:47 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47378</guid><dc:creator>Neeraj Mittal</dc:creator><description>&lt;p&gt;Nice explanation of complex topic&lt;/p&gt;
</description></item><item><title>re: Visualizing Data File Layout III</title><link>http://sqlblog.com/blogs/merrill_aldrich/archive/2013/01/28/visualizing-data-file-layout-iii.aspx#47388</link><pubDate>Tue, 29 Jan 2013 17:27:42 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47388</guid><dc:creator>csm</dc:creator><description>&lt;p&gt;Great tool for academic purposes!! Nothing better than a graphic to explain complex topics.&lt;/p&gt;
&lt;p&gt;Hope that you can share this tool with us. &lt;/p&gt;
</description></item><item><title>re: Visualizing Data File Layout III</title><link>http://sqlblog.com/blogs/merrill_aldrich/archive/2013/01/28/visualizing-data-file-layout-iii.aspx#47392</link><pubDate>Wed, 30 Jan 2013 03:28:57 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47392</guid><dc:creator>merrillaldrich</dc:creator><description>&lt;p&gt;Thanks guys. The public version is in the works.&lt;/p&gt;
</description></item><item><title>re: Visualizing Data File Layout III</title><link>http://sqlblog.com/blogs/merrill_aldrich/archive/2013/01/28/visualizing-data-file-layout-iii.aspx#47454</link><pubDate>Sun, 03 Feb 2013 06:17:03 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47454</guid><dc:creator>rivantsov</dc:creator><description>&lt;p&gt;well, nice post but... sort of accepted truth for an experienced data guy. We use Guids for PK exclusively, but knowing the effect of random clustering, we explicitly specify clustered index and it starts with some natural sequential field like &amp;quot;CreateDateTime&amp;quot;. So the immediate response to your concerns is &amp;quot;Guids as PK are OK, just make sure you add sane clustered index&amp;quot;. This seems like a complete solution, but... I myself have some concerns - it does not seem to always work well. &lt;/p&gt;
&lt;p&gt;Example: two tables: Order, OrderLine; parent/child, both use Guids for PK, and OrderLine references Order thru OrderId (Guid). Good practice is to base clustered index of OrderLine on OrderId - so that all lines for an order will be together, and will improve perf when we query for order with lines. But now we have this Guid as clustered index again - it means that chunks of lines will be allocated on disk with fragmentation as you describe. It will be interesting to find a solution... I'm thinking of even maybe adding artificial 'clustering' auto-inc int column that is base of clustered index and is propagated from parent to child - so child clusters as well. any ideas?&lt;/p&gt;
&lt;p&gt;And abandoning Guids is not an option - our app does a lot of sync-ing of databases, and autoinc/identify for PK is not an option.&lt;/p&gt;
&lt;p&gt;Another interesting question - what's the impact of Guid randomness on 'index' performance? &lt;/p&gt;
</description></item><item><title>re: Visualizing Data File Layout III</title><link>http://sqlblog.com/blogs/merrill_aldrich/archive/2013/01/28/visualizing-data-file-layout-iii.aspx#47455</link><pubDate>Sun, 03 Feb 2013 06:44:22 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47455</guid><dc:creator>rivantsov</dc:creator><description>&lt;p&gt;oh, sorry, I misunderstood. you're demoing the tool... it's not about guids/pk per se&lt;/p&gt;
</description></item></channel></rss>