SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Clustered and Non-Clustered Index
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

pdset
Constraint Violating Yak Guru

300 Posts

Posted - 10/31/2013 :  20:10:59  Show Profile  Reply with Quote
We have OLAP environment where 1 Clustered Index and Several Non-Clustered Indexes were for each table where there is no involvement for reindexing being attributed at any time (against to the practices of OLAP nature where redundancy of data is highly scalable).

Is it good to DROP-RE-CREATE NON-CLUSTERED INDEX for those tables which are heavily populated, this becomes evident as users do complaint the slowness of output.

Your expertise is much appreciated.

djj55
Constraint Violating Yak Guru

USA
332 Posts

Posted - 11/01/2013 :  06:58:09  Show Profile  Reply with Quote
Use ALTER INDEX ... REBUILD or ALTER INDEX ... REORGANIZE
after checking that the fragmentation is above a given point.

djj
Go to Top of Page

jeffw8713
Aged Yak Warrior

USA
797 Posts

Posted - 11/05/2013 :  13:19:36  Show Profile  Reply with Quote
You can disable the non-clustered indexes during the loading of data - and rebuild them after the data has been loaded. This generally works well for data warehouse environments, but will depend on how much data already exists compared to how much data is being loaded.

ALTER INDEX ... DISABLE; will disable the index, and then ALTER INDEX ... REBUILD; will rebuild and enable the index.
Go to Top of Page

sgondesi
Posting Yak Master

India
194 Posts

Posted - 11/19/2013 :  04:34:58  Show Profile  Reply with Quote
How do I know if I should create an non-clustered index on a clustered index or on a heap?

I read in a site that, if data is queried typically on one particular column, it would be beneficial to build non-clustered index upon a clustered index, but when the creation of non clustered index on heap is beneficial.

Somebody please get me out of this doubt.

--
Thanks and Regards
Srikar Reddy Gondesi,
BTECH-IT 2013 Passed Out,
Trainee for SQL Server Administration,
Miracle Software systems, Inc.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 11/19/2013 :  05:23:00  Show Profile  Reply with Quote
quote:
Originally posted by sgondesi

How do I know if I should create an non-clustered index on a clustered index or on a heap?

I read in a site that, if data is queried typically on one particular column, it would be beneficial to build non-clustered index upon a clustered index, but when the creation of non clustered index on heap is beneficial.

Somebody please get me out of this doubt.

--
Thanks and Regards
Srikar Reddy Gondesi,
BTECH-IT 2013 Passed Out,
Trainee for SQL Server Administration,
Miracle Software systems, Inc.


see

http://technet.microsoft.com/en-gb/library/cc917672.aspx#EFAA

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

sgondesi
Posting Yak Master

India
194 Posts

Posted - 11/19/2013 :  05:56:29  Show Profile  Reply with Quote
thank you i will look at that.

--
Thanks and Regards
Srikar Reddy Gondesi,
BTECH-IT 2013 Passed Out,
Trainee for SQL Server Administration,
Miracle Software systems, Inc.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000