Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Retrivemultiple plugin

Posted on by Microsoft Employee

We are trying to route retrieve multiple requests to a different DB in a always ON cluster for performance reasons.

We are trying to achieve the same by writing plugin to intercept retrieve multiple requests and routing it to a read only DB which is on a secondary server in an always on cluster.

Please could you suggest how can we achieve this in plugin code or if there is a better way to achieve the same.

Thanks

*This post is locked for comments

  • Verified answer
    Bas van de Sande Profile Picture
    Bas van de Sande 4,383 on at
    RE: Retrivemultiple plugin

    Hi Utkarsh,

    technically everything is possible (you even can use REST calls to approach another CRM database. But one question arises:  why do you want to do this?

    Using a retrievemultiple plugin step gives you a performance penalty. Don't go this route

    If you want to enhance performance you might take a look at your database cluster.  Perhaps you made some "bad" decisions in the past which bite you at this moment.  What is the grow factor of the database (do you grow in increments on 1MB or do you allocate larger chunks)? What type of storage is involved? What is the amount of memory in the SQL Server?

    Are there other heavy SQL processes running on the server (that might affect your performance).

    You also might consider, adding indexes to the tables but that would require a thorough SQL analysis.

    Instead of starting to code and creating an unmaintainable and unpredictable system, I would take a look at the environment and indexes instead.

    I hope this helps you forward

    Bas

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Retrivemultiple plugin

    Is it possible to make connection directly to DB from inside of plugin and get the data and set it in the response of retrieve all plugin?

    Please suggest.

  • Suggested answer
    Alagunellaikumar Profile Picture
    Alagunellaikumar 6,210 on at
    RE: Retrivemultiple plugin

    Hi

    Route retrieve multiple requests is not possible

  • Suggested answer
    Haansi Profile Picture
    Haansi 1,431 on at
    RE: Retrivemultiple plugin

    [quote user="Utkarsh Upadhyay"]

    We are trying to route retrieve multiple requests to a different DB in a always ON cluster for performance reasons.

    We are trying to achieve the same by writing plugin to intercept retrieve multiple requests and routing it to a read only DB which is on a secondary server in an always on cluster.

    [/quote]

    I don't thing it is possible to route retrieve multiple requests to different DBs but interested in knowing what other people suggest. Please mention what version and hosting environment you are in.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans