sql server 2008 - How to create a new index on a massive SQL table -
i have massive (3,000,000,000 rows) fact table in datawarehouse star schema. table partitioned on date key.
i add index on 1 of foreign keys. allow me identify , remove childless rows in large dimension table.
if issue create index statement take forever.
do sql gurus have fancy techniques problem?
(sql 2008)
--simplified example... create table factrisk ( dateid int not null, tradeid int not null, amount decimal not null ) --i want create index, straightforward way take forever... create nonclustered index ix_factrisk_tradeid on factrisk (tradeid)
i have plan...
- switch out daily partitions tables
- index empty fact table
- index individual partition
- switch partitions in
initial investigation implies work. report back...
Comments
Post a Comment