sql - SSIS derived column very slow (date manipulation) -


setup: have large ssis package sorts through lot of different flat files , throws them tables fit file definitions t... except date. dates come on in format: "mm/dd/yyyy hh:mm:ss.ffffff." of course, dbtimestamp, needs converted "yyyy-mm-dd hh:mm:ss.ffffff". on given file have @ least 2 dates; created , updated. on have more.

problem: of 26 files parse, 1 particularly larger other. in cases can 40+ mb. seemed running fine before, running through derived column component derives 3 dates extremely slow. takes around 30 minutes parse ~90,600 rows.

i'm watching data flow executing , bottleneck looks derived column. report error rows if happen exist , there none, know it's not choking on rows... can't figure out taking long. cpu shoots 100% while executing (no big surprise) memory stays low @ 12%.

here's exact transformation happens on each of 3 dates each line:

(dt_dbtimestamp)(substring(column,7,4) + "-" + substring(column,1,2)   + "-" + substring(column,4,2) + substring(column,11,14)) 

any ideas?

i copied db because of extensive changes , the indexes not brought on properly. slowed biggest table down. removing derived step helped me figure out further down line, despite fact monitoring ssis execution of data flow made seem thought derived step.

i realize not going happen often, i'll leave thread here in case else has problem , mistakenly identifies did!


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -