multithreading - SQL server force multitheading when executing SSIS package -
here question: using visualcron run ssis package on sql server 2008 r2. ssis package run query millions of rows , output flat file. sometimes, found when run ssis package, sql server doesn't use multi-threading(i can tell activity monitor) , lead long running time 20 hours. but, if using multi-threading done in 8 minutes.
is there way force sql server use multi-threading whenever running ssis package?
there few options optimizing query handle multiple simultaneous operations... or @ least improving performance.
apply option maxdop in query apply maximum number of processors (parallelism) available operating system. listed below example , here link more detail.
select firstname, lastname dbo.customer option (maxdop 1)
apply nolock in query if there no concern data in tables being updated during ssis package operation. is, works if there no concern "dirty reads." see following link , example.
select firstname, lastname dbo.customer with(nolock)
review link best practices improving query performance. there may additional steps have not taken or tools have not applied can assist in improving performance.
Comments
Post a Comment