sql server - SSIS package bottleneck inserting records -



sql server - SSIS package bottleneck inserting records -

i creating ssis bundle loads info source scheme info warehouse using lookups. here how process set up:

load relevant tables staging tables (6 lookup tables , info fact table) for each lookup table utilize lookup component determine if record exists in info warehouse dimension table. if match id dimension, if not match derive match. load fact table ids dimensions , 2 or 3 other pieces of info flowed through source.

not complex. lookup tables have anywhere 10 - 50 records. have limited source info 10,000 records in order bundle finish in reasonable amount of time. takes 20 minutes load 10,000 records.

the time line in messages shows:

11:13:28 - bundle started 11:13:36 - lookups prepared , ready 11:32:33 - final commit info insertion in 'target - fact insert new record has ended' 11:32:34 - bundle ended

where can see why took 19 minutes insert 10,000 records? suggestions on can differently create run faster?

edit: responses questions below

data types - not sure asking? info types of looking up? integers id fields. code field either integers or char(4).

data flow of main process is: source (run query info stage table), lookup locationid, match , unmatched union, lookup injury codeid, match , unmatched union, repeat next 4 lookup tables, sort source, merge bring together target (currently empty table), determine add, alter or delete record (these adds).

the target table is:

create table dbo.tfresidentevent ( residenteventid int identity(1, 1) primary key , sourcesystemid int , eventid integer , eventcodeid int , facilityid int , residentid int , dateid int , timeid int , locationcodeid int , causecodeid int , conditioncodeid int , injurycodeid int , chksum_type1 int, chksum_type2 int )

the timings coming messages shown on server bundle execution.

ssis on sql server 2012

i seek re-do bundle derived columns , see how long takes execute.

i removed lookup functions ssis package. in source used single query using left outer joins in order fk_ids or null in appropriate fields. sorted both source , target in query , used merge bring together identify whether bundle should add/update/delete.

once deployed on server insert of 10,000 records went 19+ minutes 17 seconds. able load entire table of 650k records in 10 minutes.

sql-server ssis

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -