Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

Clustered versus Create table on high speed FILEGROUP
Hi,

I am expanding our data warehouse solution with new filegroups on
several subsystems.

I want to know which idea is better!

- create clustered indexes on tables to 'move' them to new filegroups
- create these tables on the new filegroups.

The background of this question is as follows:

- we want the whole data on the new filegroups
- we want to know if there is any difference in performance between the
2 solutions

Thanks in advance,
Danny


Report this thread to moderator Post Follow-up to this message
Old Post
Dr Warehouse
11-30-05 12:23 PM


Re: Clustered versus Create table on high speed FILEGROUP
Hey Danny,

In both cases your data will physically reside in the space where there
is either a clustered index OR (in the case of a heap) on the drive
where the table was created.  What you didn't ask about was
nonclustered indexes; if you move the clustered index, the nonclustered
indexes will stay where they are.  If the filegroups are one seperate
disk structures, you may see some disk i/o benefits.

Does that help?

Stu


Report this thread to moderator Post Follow-up to this message
Old Post
Stu
11-30-05 12:23 PM


Re: Clustered versus Create table on high speed FILEGROUP
Hi Stu,

Thanks. Nonclustered indexes are already on seperate filegroups. Do you
know wat the difference in locking / performance gain is if the table
structure stays on the 'old' filegroup (in case of an clustered index
to a new filegroup) or the table structure is on the new filegroup.

Danny


Report this thread to moderator Post Follow-up to this message
Old Post
Dr Warehouse
11-30-05 12:23 PM


Re: Clustered versus Create table on high speed FILEGROUP
Dr Warehouse (d.riebeek@reddion.com)  writes:
> Thanks. Nonclustered indexes are already on seperate filegroups. Do you
> know wat the difference in locking / performance gain is if the table
> structure stays on the 'old' filegroup (in case of an clustered index
> to a new filegroup) or the table structure is on the new filegroup.

The clustered index is the the table structure, so if you move the
clustered index, there will be nothing left on the old filegroup.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pr...oads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodin...ions/books.mspx

Report this thread to moderator Post Follow-up to this message
Old Post
Erland Sommarskog
11-30-05 12:23 PM


Re: Clustered versus Create table on high speed FILEGROUP
Where your clustered index is, your table is.   When you move a
clustered index to a new filegroup, you are moving the entire table to
that filegroup, so there is no performance gain in moving the index
(unless you're moving to better hardware or a better configuration).

Just to be clear, in order to get a performance boost using filegroups,
those filegroups must be on seperate physical disk structures; however,
when you move a clustered index, you're moving the whole table.

HTH,
Stu


Report this thread to moderator Post Follow-up to this message
Old Post
Stu
11-30-05 12:23 PM


Sponsored Links





Last Thread Next Thread
Post New Thread

Microsoft SQL Server forum archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 11:19 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006