Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 4th, 2003, 08:31 AM
Registered User
 
Join Date: Aug 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Table performance

Hi, some performance issue to ask.

consider a Master-Child situation, where tblA and tblB is both Master and having the same Child table structure. Some people recommend using the same table as Child for both tblA and tblB as this save resources. Any comments on this? Does it really good or bad? Would it involves higher page read and write? What cost is there actually in having extra tables in SQL Server?


 
Old August 4th, 2003, 06:23 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 215
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'd avoid doing this. Not for performance reasons, but because it makes for a poor database design. Each table/database entity should be created for one purpose. To blend together two tables blurs that purpose. I suspect that you might also have problems defining two foreign key relationships on the child column.

I don't think you'd gain much performance. If anything you'd probably lose performance, as the tables would be longer, resulting is more rows to scan for joins, where conditions and the like.

regards
David Cameron





Similar Threads
Thread Thread Starter Forum Replies Last Post
Array or Table Performance comparison bananas SQL Language 4 June 5th, 2007 05:29 AM
Performance prasanta2expert SQL Server 2000 6 December 15th, 2006 10:38 PM
Table Performance mikericc Access 10 February 17th, 2004 02:39 PM
what is the best to do, better performance alyeng2000 ASP.NET 1.0 and 1.1 Basics 1 December 13th, 2003 07:56 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.