CXSYNC_PORT Wait type Randomly for Some Queries

MarcinGitSom 0 Reputation points
2023-06-24T16:04:31.54+00:00

I am getting high CXSYNC_PORT waiting type for some of the quereis, all my query are of same type, the wait occurs randomly for 1-2 queires. Generally my execution time is less than 1 sec but due to this wait it goes more than 30 sec.
Screenshot 2023-06-24 at 9.32.40 PM

Screenshot 2023-06-24 at 9.34.03 PM

Below is query plan all my queries are having similar plan only it randomly waits for 1-2 query while other query execute within 1 sec.

It usually the first query which is executed if system is idle for some time.

Azure SQL Database
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Alberto Morillo 35,406 Reputation points MVP Volunteer Moderator
    2023-06-24T16:34:22.1833333+00:00

    I don't have an exact solution for this. You can refer to this forum thread about the cause of this wait.

    However, using the MAXDOP = 1 you may get a great performance improvement.

    SELECT *
    FROM Table
    OPTION (MAXDOP 1) 
    
    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.