Insertion in Leaf table in SQL Server MDS is very slow

469 views Asked by At

I am using SSIS to move data from an existing database to an MDS database. I am following the following Control flow;

  1. Truncate TableName_Leaf
  2. Load Data to stg

The second step has the following data flow:
1. Load data from source database (This has around 90000 records)
2. Apply a data conversion task to convert string datatype to Unicode (as MDS only supports Unicode)
3. Specify TableName_Leaf as OLE DB destination.

The step 1 and 2 are completing quickly, but the insertion to Leaf table is extremely slow. (It took 40 seconds to move 100 rows end to end, and around 6 minutes to move 1000 records.)

I tried deleting extra constraints from the Leaf table, but that also did not improve the performance much.

Is there any other way to insert data to MDS which is quicker or better?

1

There are 1 answers

0
Shaswat Rungta On

Using a Table or view - fast load. in OLE DB destination connection helped resolve the issue. I used a batch size of 1000 for my case and it worked fine.