web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CRM email router heavy SQL load

(0) ShareShare
ReportReport
Posted on by 65

Hi,

I am seeing a huge amount of SQL activity caused by a query from the CRM email router. This query is one of the highest CPU / IO consumers on the database. I can't find any posts from other CRM users relating to this issue so I assume it is not common. The tables read by this query are very large as we are running large marketing campaigns (500K+ are quite common).

Does anyone else see this query high in their sys.dm_exec_query_stats?

ActivityPointerBase 26,837,481 rows

ActivityPartyBase 113,692,839 rows

EmailBase 19,593,214 rows

)select  top 5 "email0".Subject as "subject"  ,

 "email0".Description as "description"  ,

"email0".PriorityCode as "prioritycode"  ,

  "email0".ActivityId as "activityid"  ,

   "email0".ModifiedOn as "modifiedon"  ,

    "email0".StateCode as "statecode"  ,

   "email0".StatusCode as "statuscode"  ,

     "email0".DeliveryAttempts as "deliveryattempts"

     from  Email as "email0" (NOLOCK)

      join ActivityParty as "activityparty1" (NOLOCK)

         on ("email0".ActivityId  =  "activityparty1".ActivityId

        and (((("activityparty1".ParticipationTypeMask = @ParticipationTypeMask0

         and ("activityparty1".PartyId in (@PartyId0  , @PartyId1  , @PartyId2  , @PartyId3  , @PartyId4)))))))

           where  (("email0".StateCode = @StateCode0 and ("email0".StatusCode != @StatusCode0 or "email0".StatusCode is null) and "email0".DirectionCode = @DirectionCode0 and (((((("email0".DeliveryAttempts = @DeliveryAttempts0)))))))) order by  "email0".ActualEnd as

 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Anjali Raj Profile Picture
    on at

    I believe it might be because of large email marketing campaigns . Please check the below articles

    support.microsoft.com/.../959248

    support.microsoft.com/.../en-us

    Try to follow this articles and let me know.

  • MarkShips Profile Picture
    65 on at

    I am using 2011. These arcticles look very relevant to the issue but do they apply to 2011 also?

  • MarkShips Profile Picture
    65 on at

    I am using 2011. These arcticles look very relevant to the issue but do they apply to 2011 also?

  • Anjali Raj Profile Picture
    on at

    Yes you can go ahead try them

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans