![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Can DTS outperform pure T-SQL on inserts when the source and destination are in the same database? I have a staging table with the same schema as my destination table. My destination has 200 million records and my staging table has 30 million records. Do you have any suggestions on indexing strategies or optimization tips? Currently the clustered index is a covering index on (col2_int, col3_int, col1_char_55) SELECT count(*) FROM myTable_stage a with(nolock) LEFT OUTER JOIN myTable b with(nolock) ON b.col1_int = a.col1_int AND b.col2_int = a. col2_int AND b.col3_char_55 = a.col3_char_55 WHERE b.col1_int IS NULL col1_int has 1500 unique values col2_int has 50000 unique values col3_char_55 has 50000 unique values Currently I am using one copy column transformation in 50000 batches. |
#3
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |