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...

  1. switch out daily partitions tables
  2. index empty fact table
  3. index individual partition
  4. switch partitions in

initial investigation implies work. report back...


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -