sql server - Performance in an SSIS package with asynchronous component -


hi posted here :

i face problems excuting ssis packages, take huge time. due lot of constraints i'm trying resolve 1 one ! start query takes more 3 hours extract 720 000 rows her's it:

select      --11 fields tbl1     tbl1.field1 field1,     ….     .     .     tbl1.field11 field11,      case when (dbo.tbl1.field11 = 'j')                            n'batch' else dbo.tbl1.field11 end creation_oprid, convert(date, tbl1.date1)                            creation_date, convert(date, tbl1.date2) update_date,                            case when (dbo.tbl1.field12 = 'j')                            n'batch' else dbo.tbl1.field12 end update_oprid,      tbl1.id,       --3 fields tbl2      tbl2.field1 field1,     ….     .     .     tbl2.field3 field3,      tbl3.field1 field1,     tbl4.field1 field1,     tbl3_2.field1 field1,      --30 fields tbl5     tbl5.field1 field1,     ….     .     .     tbl5.field30 field30,      --7 fields tbl6      tbl6.field1 field1,     ….     .     .     tbl6.field7 field7,      --5 fields tbl7      tbl7.field1 field1,     ….     .     .     tbl8.field5 field5,       --7 fields tbl8      tbl8.field1 field1,     ….     .     .     tbl8.field7 field7,      --      ---6 conditions same table , same field , 6 conditions ,        case when tbl9.field1 = n'value1' tbl9.field2 end xxx1,       case when tbl9.field1 = n'value1' tbl9.field2 ,       tbl9.field3= 'samevalue' n'batch' else tbl9.field3 end yyy1,      .     .       case when tbl9.field1 = n'value6' tbl9.field2 end xxx6,       case when tbl9.field1 = n'value6' tbl9.field2 ,       tbl9.field3= 'samevalue' n'batch' else tbl9.field3 end yyy6,      tbl3_4.field1 field1,     dbo.tbl10.field1 field1,     dbo.tbl10_1.field1 field1,       case when dbo.tbl8.type_id = 9 n'y' when dbo. dbo.tbl8.type_id = 10 n'n' end                            flag,      case when dbo.tbl11.field_id not null                            ('o_' + dbo.tbl11.field_id) end field_id,      case when dbo.tbl12.field_id not null ('l_' + dbo.tbl12.field_id) end field_id                         ,row_number() on (order id,dbo.tbl8.fieldid,dbo.tbl8.field2id) rownumber                     dbo.tbl1      inner join dbo.tbl8          on tbl1.field_id = tbl8.contact_field_id      left outer join dbo.tbl12          on dbo.tbl1.person_id = dbo.tbl12.field_id_contact      left outer join dbo.ps_rsf_opp_contact          on dbo.tbl1.person_id = dbo.tbl11.field_id_contact      left outer join dbo.tbl3 tbl3_4          on tbl1.comm_method = tbl3_4.fieldvalue , (fieldname = n'value') , (eff_status = n'a')      left outer join dbo.tbl9          on tbl1.field_id = tbl9.field_id      left outer join dbo.tbl5          on tbl1.field_id = tbl5.field_id      left outer join dbo.tbl7          on tbl1.field_id = tbl7.field_id      left outer join tbl6         on tbl1.field_id = tbl6.field_id      left outer join dbo.tbl10 tbl10_1      right outer join dbo.tbl13          on tbl10_1.cm_purpose_type_id = dbo.tbl13.cm_purpose_type_id          on tbl1.field_id = tbl13.field_id      left outer join dbo.tbl10      right outer join dbo.tbl14          on dbo.tbl10.cm_purpose_type_id = dbo.tbl14.cm_purpose_type_id          on tbl1.field_id = tbl14.field_id      left outer join dbo.tbl3 tbl3_2          on tbl1.prsn_type = tbl3_2.fieldvalue , (tbl3_2.fieldname =          n'prsn_type')          , (tbl3_2.eff_status = n'a')      left outer join dbo.tbl4          on tbl1.field_cd = tbl4.field_cd      left outer join dbo.tbl3 tbl3          on tbl1.field_cd = tbl3.fieldvalue , (tbl3.fieldname = n' lang')          , (tbl3.eff_status = n'a')      left outer join dbo.tbl2 tbl2          on tbl1.field_id = tbl2.field_id , (tbl2.primary_ind = 'y')     order dbo.tbl1.person_id 

thank help


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -