Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Use of Parallelism. Expand / Collapse
Author
Message
Posted Wednesday, December 19, 2012 11:42 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, June 9, 2014 1:01 AM
Points: 40, Visits: 169
How can we use the parallelism in sql server. For the same query the exectuin plan at QA server the parallelism is being used. But It is not showing in Staging Server. What can be the reason behind that ?
Post #1398793
Posted Wednesday, December 19, 2012 11:48 PM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 8:01 PM
Points: 21,642, Visits: 15,312
The reasons can be related to available resources, number of records and/or server settings.

Are bother environments exactly the same? If not, then the same execution plan could happen but should not be expected.




Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #1398794
Posted Wednesday, December 19, 2012 11:55 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, June 9, 2014 1:01 AM
Points: 40, Visits: 169
SQLRNNR (12/19/2012)
The reasons can be related to available resources, number of records and/or server settings.

Are bother environments exactly the same? If not, then the same execution plan could happen but should not be expected.



Yes, No of records in the table and environments are same. how can we resolve that ?
Post #1398797
Posted Thursday, December 20, 2012 12:10 AM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 8:01 PM
Points: 21,642, Visits: 15,312
And the server settings, are they the same?

Max Degree of parallelism and Cost Threshold for Parallelism for starters.





Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #1398809
Posted Thursday, December 20, 2012 12:23 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, June 9, 2014 1:01 AM
Points: 40, Visits: 169
SQLRNNR (12/20/2012)
And the server settings, are they the same?

Max Degree of parallelism and Cost Threshold for Parallelism for starters.



Yes Both are same.....
Post #1398820
Posted Thursday, December 20, 2012 12:39 AM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 8:01 PM
Points: 21,642, Visits: 15,312
And which plan is it that you want to use?

Which plan is performing better?

Did you clear the cache before running your tests on both servers?


Both servers have same number of cpus, same affinity, same resource governor settings, same memory?

Both servers have advanced power management turned off in bios?




Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #1398829
Posted Thursday, December 20, 2012 2:50 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, June 9, 2014 1:01 AM
Points: 40, Visits: 169
SQLRNNR (12/20/2012)
And which plan is it that you want to use?

Which plan is performing better?

Did you clear the cache before running your tests on both servers?


Both servers have same number of cpus, same affinity, same resource governor settings, same memory?

Both servers have advanced power management turned off in bios?


I want to use the execution plan which have the parallelism. It is working faster.
Both servers have same number of cpus, same affinity, same resource governor settings, same memory.

Post #1398878
Posted Thursday, December 20, 2012 2:55 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, June 9, 2014 1:01 AM
Points: 40, Visits: 169
SQLRNNR (12/20/2012)
And which plan is it that you want to use?

Which plan is performing better?

Did you clear the cache before running your tests on both servers?


Both servers have same number of cpus, same affinity, same resource governor settings, same memory?

Both servers have advanced power management turned off in bios?


I have checked the no of processor. QA server, where the parallelism is being used have th 2 processor. and staging server have the 4 processor, where the parallelism qry is not being used.
Post #1398880
Posted Thursday, December 20, 2012 8:23 PM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 8:01 PM
Points: 21,642, Visits: 15,312
Is advanced power management enabled in the bios on either machine?

Also, please submit actual execution plans for both servers. It will help us to troubleshoot.




Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #1399161
Posted Friday, December 21, 2012 5:31 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Saturday, August 23, 2014 8:34 AM
Points: 7,097, Visits: 12,601
Have you updated your statistics recently on both databases? If statistics are up to date on one and not the other SQL Server can generate or pick different execution plans for the same query.

This too:

SQLRNNR (12/20/2012)
Also, please submit actual execution plans for both servers. It will help us to troubleshoot.


__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Post #1399354
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse