SlideShare une entreprise Scribd logo
1  sur  31
#CRMUGSummit | #INreno15
#CRMUGSummit
Daniel Cai, KingswaySoft Inc.
SESSION CODE: ADC26
GETTING DATA INTO MICROSOFT DYNAMICS
CRM FASTER
#CRMUGSummit | #INreno15
INTRODUCTION - YOUR PRESENTER
 Daniel Cai
 Principal Developer @KingswaySoft
 7 Years of development experiences with Microsoft Dynamics CRM
– Mostly working as a developer
 5 times of Microsoft Dynamics CRM MVP since 2011
 About KingswaySoft
– A leading provider of data integration solutions for Microsoft Dynamics software and
beyond
• SSIS Integration Toolkit for Microsoft Dynamics CRM
• SSIS Integration Toolkit for Microsoft Dynamics AX
• SSIS Integration Toolkit for Microsoft Dynamics GP
• SSIS Integration Toolkit for Microsoft Dynamics Marketing
• SSIS Integration Toolkit for Microsoft Dynamics NAV
• SSIS Integration Toolkit for Microsoft Dynamics SL
• SSIS Integration Toolkit for Parature
• and many more…
– Thousands of enterprise clients worldwide depend on our integration solutions to
drive their data efficiency
2
#CRMUGSummit | #INreno15
 Discuss the techniques that you can use to get
data into Microsoft Dynamics CRM faster
 Discuss some best practices that you utilize in
your CRM data integration and migration
projects
3
SESSION OBJECTIVES
#CRMUGSummit | #INreno15
 SSIS Integration Toolkit is used in some occasions in this presentation to
discuss the techniques
– It is a data integration solution developed by KingswaySoft that I work for
– More information available at http://www.kingswaysoft.com/products/ssis-integration-
toolkit-for-microsoft-dynamics-crm
 The techniques should be transferrable to any other third-party or home-
grown solutions in a similar fashion, provided an equivalent option is
available
 I didn’t invent any tips or tricks, neither did I discover all of them by myself,
they all come from the community that I have been learning. The credits go
to the generous CRM community and some special individuals.
4
DISCLAIMER
#CRMUGSummit | #INreno15
 WHY?
 WHERE TO START FROM?
 HOW?
 Final Q&A
 Closing & Surveys
5
AGENDA
WHY?
#CRMUGSummit | #INreno15
 Web Service Interfaces are generally slow
– Dynamics CRM is no exception
 You are often constrained by the limited time window
– A couple to a few hours time window for your daily integration
– Typically a ~50 hours of time window for the initial data migration
• Friday 9pm to Monday 6am
 Your data volume could be significantly large
 You always want to be faster!
7
WHAT ARE THE PROBLEMS
WHERE TO START FROM?
#CRMUGSummit | #INreno15
 Identify Resources
– Technical Resources
 Get to know your infrastructure
– Networking
– Server Capacities
 Define a baseline benchmark
– How many records in a second are required in order to meet the time window allowed
 Define the infrastructure that can help you achieve the desired benchmark
 Decide between Buy vs Write
9
DEFINE YOUR STRATEGIES
#CRMUGSummit | #INreno15
 Optimized Infrastructure
– Networking
– Firewall
– Security Policies
– Network Load Balancer
 Server Capacity (CRM Server, Database Server, Integration
Server)
– CPU
– Memory
– I/O
10
HAVING THE RIGHT INFRASTRUCTURE
#CRMUGSummit | #INreno15
 CRM Data Import Wizard
 Message-driven Integration Solutions
– BizTalk
– Service Bus
– Message Queue
 Batch-based ETL Solutions
– SSIS
– Scribe
– Informatica
– IBM CastIron
11
CHOOSE THE RIGHT TOOLS
#CRMUGSummit | #INreno15
 Each tool works somewhat differently
 Establish a good understanding of your tools
– Know the capabilities
– Know the different options to achieve a particular
purpose
– Know the techniques that can be used to help achieve
better performance
12
TRY TO KNOW YOUR TOOLS
HOW?
#CRMUGSummit | #INreno15
MULTI-THREADING
Make sure to update your .config file in order to
overcome the connection limit of concurrent
service calls
<configuration>
...
<system.net>
<connectionManagement>
<add address="*" maxconnection="100"/>
</connectionManagement>
</system.net>
</configuration>
TheSSIS way
#CRMUGSummit | #INreno15
LEVERAGE MULTI-NODE CLUSTER
How to achieve this?
• CRM Server URL option in SSIS Integration Toolkit
#CRMUGSummit | #INreno15
BULK API
 Bulk API is more beneficial when
network latency is high
 There is an API throttling with CRM
Online
– At most 2 concurrent ExecuteMultiple
requests per organization
How to achieve this?
• Simply enter a Batch Size in SSIS destination
component.
#CRMUGSummit | #INreno15
 The less fields, the better performance
 Some fields may require additional services calls using special SOAP messages when
writing to CRM
– statecode/statuscode
– ownerid
– some more
• parentsytemuserid and businessunitid (systemuser entity)
• businessunitid (team and equipment entities)
• Parentbusinessunitid (businessunit entity)
– Those special service calls are not necessary if it is an Update and you are using v7.1 or later
• For Create or Upsert calls, you still need the additional service calls (as of v7.1).
 Any fields registered for CRM plugins/workflows or auditing will have certain performance
impact when submitted
17
MINIMIZE THE NUMBER OF FIELDS YOU WORK WITH
#CRMUGSummit | #INreno15
 Why?
– Smaller SOAP message, which in turn results in less networking time
– Can avoid firing unnecessary CRM plugins/workflows or auditing
that are registered for the fields
 How to achieve this?
– Simply turn on “Ignore Unchanged Fields” option in CRM destination
component
18
AVOID SUBMITTING UNCHANGED FIELDS
#CRMUGSummit | #INreno15
 CRM Diagnostics Tool
– http://CrmServer/tools/diagnostics/diag.aspx
 Ideally the latency should be as low as
possible
– Make sure the integration server (or
workstation) is close to the CRM Server
– A poor infrastructure can result in high
network latency, even the servers are close
to each other
 Bandwidth should be as high as possible
19
MIND YOUR NETWORK LATENCY
#CRMUGSummit | #INreno15
 Which servers
– CRM Server
– Database Server
– Integration Server (or workstation)
 What to watch
– CPU
– Memory
– I/O
– Other CRM performance counters
20
WATCH OUT RESOURCE USAGES ON SERVERS
#CRMUGSummit | #INreno15
 Plan CRM database growth
– Have the right server specification to accommodate the growth
– Define data archiving strategies as required
– For initial load, consider sizing the database to the target size after the completion of the load to avoid database growth during
the load
 Cleanup PrincipalObjectAccessBase table as required (to remove orphan records)
– http://support.microsoft.com/kb/2664150
• Consider implementing this as a SQL Server agent job to cleanup weekly or monthly to keep your system healthy
 Cleanup AsyncOperationBase table as required (to remove completed workflow logs)
– http://support.microsoft.com/kb/968520 for one-time cleanup
• Make sure you implement the index first, otherwise it could a long time to complete depending on how many records you have
• Consider implementing this as a SQL Server agent job to cleanup weekly or monthly to keep your system healthy
– For CRM workflows, consider choosing “Automatically delete completed workflow jobs (to save disk space)” option for automatic
cleanup
– For asynchronous plugin, consider choosing “Delete AsyncOperation if StatusCode = Successful” option for automatic cleanup
21
MANAGE DATABASE GROWTH
#CRMUGSummit | #INreno15
 If your data integration or migration process involves any querying, you should review your query performance
 Depending on the situation, if any query involves non-indexed CRM database field(s), you might want to add custom
index(es)
– CRM On-Prem, add custom indexes to CRM database directly
– CRM Online, request adding custom indexes by raising a support ticket. Alternatively, use the following techniques to add custom
indexes automatically.
• Add the field to CRM quick find view
• Create CRM alternate key – will have to be unique
 Note that having an excessive number of indexes in one database table (entity) can adversely affect your performance
 Where to start from?
– Look for long running queries in CRM Server Windows Log
• CRM logs any database queries that take longer than 10s
– SQL Server “Missing Index” tables
 Query Tuning
– Show Actual Execution Plan – SQL Server Management Studio (SSMS)
– SQL Server Database Engine Tuning Wizard
22
MANAGE DATABASE INDEXES
#CRMUGSummit | #INreno15
 Reschedule CRM Maintenance Jobs
– By default, the time when CRM maintenance jobs kick off
depends on when the server was installed (or the
organization being provisioned) – which could be in busy
business hours
– Ideally your integration job kicks off shortly after the
maintenance job finishes
 Disable the Reindex All job
– What it does?
• Reindex
• Shrink your CRM database
– Create your own CRM database maintenance jobs
23
MANAGE CRM MAINTENANCE JOBS
#CRMUGSummit | #INreno15
 Manual primary keys could cause performance issue
down the road
– CRM Server generates sequential GUID values for best
performance
– Use manual primary keys only for migration purpose
 Further read:
– The Dangers of Guid.NewGuid();
• http://blogs.msdn.com/b/crminthefield/archive/2015/01/19/the-dangers-of-guid-
newguid.aspx
24
AVOID GENERATING PRIMARY KEY (GUID) YOURSELF
#CRMUGSummit | #INreno15
 Turn on SQL Server RCSI (Read Committed Snapshot Isolation)
– https://msdn.microsoft.com/en-us/library/tcbchxcb(v=vs.110).aspx
ALTER DATABASE CrmOrgName_MSCRM
SET ALLOW_SNAPSHOT_ISOLATION ON
ALTER DATABASE CrmOrgName_MSCRM
SET READ_COMMITTED_SNAPSHOT ON
 Add NOLOCK hint to your FetchXML Query
<fetch mapping="logical" no-lock="true">
<entity name="account">
<attribute name="name" />
<filter>
<condition attribute="creditlimit" operator="gt" value="1000000" />
</filter>
</entity>
</fetch>
25
DEAL WITH LOCKS
#CRMUGSummit | #INreno15
 Help reduce database
deadlocks
 Recommended for CRM
database, but not for data
warehouse
26
SQL SERVER – MAX DEGREE OF PARALLELISM
#CRMUGSummit | #INreno15
 Set CRM database to Simple Recovery mode
– No SQL Server transaction logs
 Disable IIS Logging
 Disable all CRM workflows / plugins and auditing
 Running data integration on CRM server itself
– Best possible network latency
– You need to alternate the target service URL to point to local server as
shown previously
27
EVEN MORE AGGRESSIVE MEASURES – SOME MAY
ONLY BE PRACTICAL FOR INITIAL LOAD
#CRMUGSummit | #INreno15
 White Papers
– Microsoft Dynamics CRM 2015 White Papers & Technical Documentation
• http://blogs.msdn.com/b/crminthefield/archive/2015/01/05/microsoft-dynamics-crm-2015-white-papers-amp-technical-
documentation.aspx
– Optimizing and maintaining the performance of a Microsoft Dynamics CRM 2011 server infrastructure
• http://www.microsoft.com/en-ca/download/details.aspx?id=27139
 Wikipedia
– Dynamics CRM Quick Optimization Guide
• http://social.technet.microsoft.com/wiki/contents/articles/13661.dynamics-crm-2011-quick-optimization-guide.aspx
 Blog Posts
– http://blogs.msdn.com/b/crminthefield/archive/2012/04/26/avoid-performance-issues-by-re-scheduling-crm-2011-
maintenance-jobs.aspx
 Best Practices
– Best practices for developing with Microsoft Dynamics CRM
• https://msdn.microsoft.com/en-us/library/gg509027.aspx
28
RESOURCES
#CRMUGSummit | #INreno15
 Daniel Cai, KingswaySoft
– daniel.cai@kingswaysoft.com
– Twitter: danielcai
– LinkedIn: https://ca.linkedin.com/in/danielcai
– http://www.kingswaysoft.com
29
CONTACT INFO
#CRMUGSummit | #INreno15
THANK YOU!
 Please complete & turn in your survey now
 Session code: ADC26
 Visit the online CRMUG Summit 2015 community to
download these slides, ask questions, and connect
with participants
 Visit the CRMUG Medics in the HUB to get expert
advice on your CRM-related problems!
30
Getting data into microsoft dynamics crm faster

Contenu connexe

Tendances

Microsoft Azure BI Solutions in the Cloud
Microsoft Azure BI Solutions in the CloudMicrosoft Azure BI Solutions in the Cloud
Microsoft Azure BI Solutions in the CloudMark Kromer
 
DMPs are Dead. Welcome to the CDP Era.
DMPs are Dead. Welcome to the CDP Era.DMPs are Dead. Welcome to the CDP Era.
DMPs are Dead. Welcome to the CDP Era.mParticle
 
Data Mesh Part 4 Monolith to Mesh
Data Mesh Part 4 Monolith to MeshData Mesh Part 4 Monolith to Mesh
Data Mesh Part 4 Monolith to MeshJeffrey T. Pollock
 
Dynamics 365 for finance operations pitch deck (002)
Dynamics 365 for finance  operations pitch deck (002)Dynamics 365 for finance  operations pitch deck (002)
Dynamics 365 for finance operations pitch deck (002)Jürgen Ambrosi
 
Should I move my database to the cloud?
Should I move my database to the cloud?Should I move my database to the cloud?
Should I move my database to the cloud?James Serra
 
The Cloud Operating Model MVP: From Zero to Production Ready in 12 Weeks - Bu...
The Cloud Operating Model MVP: From Zero to Production Ready in 12 Weeks - Bu...The Cloud Operating Model MVP: From Zero to Production Ready in 12 Weeks - Bu...
The Cloud Operating Model MVP: From Zero to Production Ready in 12 Weeks - Bu...Amazon Web Services
 
Serhii Kholodniuk: What you need to know, before migrating data platform to G...
Serhii Kholodniuk: What you need to know, before migrating data platform to G...Serhii Kholodniuk: What you need to know, before migrating data platform to G...
Serhii Kholodniuk: What you need to know, before migrating data platform to G...Lviv Startup Club
 
Managed File Transfer Presentation
Managed File Transfer PresentationManaged File Transfer Presentation
Managed File Transfer PresentationDoug Kern
 
Azure architecture design patterns - proven solutions to common challenges
Azure architecture design patterns - proven solutions to common challengesAzure architecture design patterns - proven solutions to common challenges
Azure architecture design patterns - proven solutions to common challengesIvo Andreev
 
Enterprise Cloud Operating Model Design
Enterprise Cloud Operating Model DesignEnterprise Cloud Operating Model Design
Enterprise Cloud Operating Model DesignJoseph Schwartz
 
How To Drive A Successful ServiceNow Implementation
How To Drive A Successful ServiceNow ImplementationHow To Drive A Successful ServiceNow Implementation
How To Drive A Successful ServiceNow ImplementationAspire Systems
 
The Future of Data Warehousing and Data Integration
The Future of Data Warehousing and Data IntegrationThe Future of Data Warehousing and Data Integration
The Future of Data Warehousing and Data IntegrationEric Kavanagh
 
Are Your Account Reconciliations in Good Shape?
Are Your Account Reconciliations in Good Shape?Are Your Account Reconciliations in Good Shape?
Are Your Account Reconciliations in Good Shape?Justin Johnson
 
Building Data Quality pipelines with Apache Spark and Delta Lake
Building Data Quality pipelines with Apache Spark and Delta LakeBuilding Data Quality pipelines with Apache Spark and Delta Lake
Building Data Quality pipelines with Apache Spark and Delta LakeDatabricks
 
How to Migrate Applications Off a Mainframe
How to Migrate Applications Off a MainframeHow to Migrate Applications Off a Mainframe
How to Migrate Applications Off a MainframeVMware Tanzu
 
Financial Event Sourcing at Enterprise Scale
Financial Event Sourcing at Enterprise ScaleFinancial Event Sourcing at Enterprise Scale
Financial Event Sourcing at Enterprise Scaleconfluent
 
Apache Kafka in the Telco Industry (OSS, BSS, OTT, IMS, NFV, Middleware, Main...
Apache Kafka in the Telco Industry (OSS, BSS, OTT, IMS, NFV, Middleware, Main...Apache Kafka in the Telco Industry (OSS, BSS, OTT, IMS, NFV, Middleware, Main...
Apache Kafka in the Telco Industry (OSS, BSS, OTT, IMS, NFV, Middleware, Main...Kai Wähner
 
Understanding and controlling transaction logs
Understanding and controlling transaction logsUnderstanding and controlling transaction logs
Understanding and controlling transaction logsRed Gate Software
 
Making the Case for Integration Platform as a Service (iPaaS)
Making the Case for Integration Platform as a Service (iPaaS)Making the Case for Integration Platform as a Service (iPaaS)
Making the Case for Integration Platform as a Service (iPaaS)Axway
 

Tendances (20)

Microsoft Azure BI Solutions in the Cloud
Microsoft Azure BI Solutions in the CloudMicrosoft Azure BI Solutions in the Cloud
Microsoft Azure BI Solutions in the Cloud
 
DMPs are Dead. Welcome to the CDP Era.
DMPs are Dead. Welcome to the CDP Era.DMPs are Dead. Welcome to the CDP Era.
DMPs are Dead. Welcome to the CDP Era.
 
ITIL - introduction to ITIL
ITIL - introduction to ITILITIL - introduction to ITIL
ITIL - introduction to ITIL
 
Data Mesh Part 4 Monolith to Mesh
Data Mesh Part 4 Monolith to MeshData Mesh Part 4 Monolith to Mesh
Data Mesh Part 4 Monolith to Mesh
 
Dynamics 365 for finance operations pitch deck (002)
Dynamics 365 for finance  operations pitch deck (002)Dynamics 365 for finance  operations pitch deck (002)
Dynamics 365 for finance operations pitch deck (002)
 
Should I move my database to the cloud?
Should I move my database to the cloud?Should I move my database to the cloud?
Should I move my database to the cloud?
 
The Cloud Operating Model MVP: From Zero to Production Ready in 12 Weeks - Bu...
The Cloud Operating Model MVP: From Zero to Production Ready in 12 Weeks - Bu...The Cloud Operating Model MVP: From Zero to Production Ready in 12 Weeks - Bu...
The Cloud Operating Model MVP: From Zero to Production Ready in 12 Weeks - Bu...
 
Serhii Kholodniuk: What you need to know, before migrating data platform to G...
Serhii Kholodniuk: What you need to know, before migrating data platform to G...Serhii Kholodniuk: What you need to know, before migrating data platform to G...
Serhii Kholodniuk: What you need to know, before migrating data platform to G...
 
Managed File Transfer Presentation
Managed File Transfer PresentationManaged File Transfer Presentation
Managed File Transfer Presentation
 
Azure architecture design patterns - proven solutions to common challenges
Azure architecture design patterns - proven solutions to common challengesAzure architecture design patterns - proven solutions to common challenges
Azure architecture design patterns - proven solutions to common challenges
 
Enterprise Cloud Operating Model Design
Enterprise Cloud Operating Model DesignEnterprise Cloud Operating Model Design
Enterprise Cloud Operating Model Design
 
How To Drive A Successful ServiceNow Implementation
How To Drive A Successful ServiceNow ImplementationHow To Drive A Successful ServiceNow Implementation
How To Drive A Successful ServiceNow Implementation
 
The Future of Data Warehousing and Data Integration
The Future of Data Warehousing and Data IntegrationThe Future of Data Warehousing and Data Integration
The Future of Data Warehousing and Data Integration
 
Are Your Account Reconciliations in Good Shape?
Are Your Account Reconciliations in Good Shape?Are Your Account Reconciliations in Good Shape?
Are Your Account Reconciliations in Good Shape?
 
Building Data Quality pipelines with Apache Spark and Delta Lake
Building Data Quality pipelines with Apache Spark and Delta LakeBuilding Data Quality pipelines with Apache Spark and Delta Lake
Building Data Quality pipelines with Apache Spark and Delta Lake
 
How to Migrate Applications Off a Mainframe
How to Migrate Applications Off a MainframeHow to Migrate Applications Off a Mainframe
How to Migrate Applications Off a Mainframe
 
Financial Event Sourcing at Enterprise Scale
Financial Event Sourcing at Enterprise ScaleFinancial Event Sourcing at Enterprise Scale
Financial Event Sourcing at Enterprise Scale
 
Apache Kafka in the Telco Industry (OSS, BSS, OTT, IMS, NFV, Middleware, Main...
Apache Kafka in the Telco Industry (OSS, BSS, OTT, IMS, NFV, Middleware, Main...Apache Kafka in the Telco Industry (OSS, BSS, OTT, IMS, NFV, Middleware, Main...
Apache Kafka in the Telco Industry (OSS, BSS, OTT, IMS, NFV, Middleware, Main...
 
Understanding and controlling transaction logs
Understanding and controlling transaction logsUnderstanding and controlling transaction logs
Understanding and controlling transaction logs
 
Making the Case for Integration Platform as a Service (iPaaS)
Making the Case for Integration Platform as a Service (iPaaS)Making the Case for Integration Platform as a Service (iPaaS)
Making the Case for Integration Platform as a Service (iPaaS)
 

Similaire à Getting data into microsoft dynamics crm faster

CRM magic with data migration & integration (Presentation at CRMUG Summit 2013)
CRM magic with data migration & integration (Presentation at CRMUG Summit 2013)CRM magic with data migration & integration (Presentation at CRMUG Summit 2013)
CRM magic with data migration & integration (Presentation at CRMUG Summit 2013)Daniel Cai
 
Scribe insight 03 elevating performance
Scribe insight 03   elevating performanceScribe insight 03   elevating performance
Scribe insight 03 elevating performanceScribe Software Corp.
 
Boosting the Performance of your Rails Apps
Boosting the Performance of your Rails AppsBoosting the Performance of your Rails Apps
Boosting the Performance of your Rails AppsMatt Kuklinski
 
Serverless Design Patterns for Rethinking Traditional Enterprise Application ...
Serverless Design Patterns for Rethinking Traditional Enterprise Application ...Serverless Design Patterns for Rethinking Traditional Enterprise Application ...
Serverless Design Patterns for Rethinking Traditional Enterprise Application ...Amazon Web Services
 
How a CPA Can Leverage Cloud ERP to Improve Client Relationships
How a CPA Can Leverage Cloud ERP to Improve Client RelationshipsHow a CPA Can Leverage Cloud ERP to Improve Client Relationships
How a CPA Can Leverage Cloud ERP to Improve Client RelationshipsTAG
 
Tech Talk: Five Simple Steps to a More Powerful Database Experience
Tech Talk: Five Simple Steps to a More Powerful Database ExperienceTech Talk: Five Simple Steps to a More Powerful Database Experience
Tech Talk: Five Simple Steps to a More Powerful Database ExperienceCA Technologies
 
Integratie_met_System_Center_Service_Manager (1).pptx
Integratie_met_System_Center_Service_Manager (1).pptxIntegratie_met_System_Center_Service_Manager (1).pptx
Integratie_met_System_Center_Service_Manager (1).pptxdismantlinghue7028
 
SAP performance testing & engineering courseware v01
SAP performance testing & engineering courseware v01SAP performance testing & engineering courseware v01
SAP performance testing & engineering courseware v01Argos
 
Data Server Manager for DB2 for z/OS
Data Server Manager for DB2 for z/OS Data Server Manager for DB2 for z/OS
Data Server Manager for DB2 for z/OS Saghi Amirsoleymani
 
Jean-René Roy: Integrate Legacy App with Dynamic CRM
Jean-René Roy: Integrate Legacy App with Dynamic CRMJean-René Roy: Integrate Legacy App with Dynamic CRM
Jean-René Roy: Integrate Legacy App with Dynamic CRMMSDEVMTL
 
Solving 21st Century App Performance Problems Without 21 People
Solving 21st Century App Performance Problems Without 21 PeopleSolving 21st Century App Performance Problems Without 21 People
Solving 21st Century App Performance Problems Without 21 PeopleDynatrace
 
Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...
Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...
Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...Continuent
 
Saratoga CRM: Implementing Thin Client at Johnson Controls Inc.
Saratoga CRM: Implementing Thin Client at Johnson Controls Inc.Saratoga CRM: Implementing Thin Client at Johnson Controls Inc.
Saratoga CRM: Implementing Thin Client at Johnson Controls Inc.Aptean
 
Enhance ServiceNow with Automated Discovery for Mainframe and IBM i
Enhance ServiceNow with Automated Discovery for Mainframe and IBM iEnhance ServiceNow with Automated Discovery for Mainframe and IBM i
Enhance ServiceNow with Automated Discovery for Mainframe and IBM iPrecisely
 
Exploring Opportunities in Crisis by Ramco
Exploring Opportunities in Crisis by RamcoExploring Opportunities in Crisis by Ramco
Exploring Opportunities in Crisis by RamcoIndiaMART InterMESH Ltd
 
Prodev Solutions Intro
Prodev Solutions IntroProdev Solutions Intro
Prodev Solutions IntrolarryATprodev
 
Impact2014: Practical Performance Troubleshooting
Impact2014: Practical Performance TroubleshootingImpact2014: Practical Performance Troubleshooting
Impact2014: Practical Performance TroubleshootingChris Bailey
 

Similaire à Getting data into microsoft dynamics crm faster (20)

CRM magic with data migration & integration (Presentation at CRMUG Summit 2013)
CRM magic with data migration & integration (Presentation at CRMUG Summit 2013)CRM magic with data migration & integration (Presentation at CRMUG Summit 2013)
CRM magic with data migration & integration (Presentation at CRMUG Summit 2013)
 
Scribe insight 03 elevating performance
Scribe insight 03   elevating performanceScribe insight 03   elevating performance
Scribe insight 03 elevating performance
 
Boosting the Performance of your Rails Apps
Boosting the Performance of your Rails AppsBoosting the Performance of your Rails Apps
Boosting the Performance of your Rails Apps
 
IBM Capacity Management Analytics
IBM Capacity Management AnalyticsIBM Capacity Management Analytics
IBM Capacity Management Analytics
 
Serverless Design Patterns for Rethinking Traditional Enterprise Application ...
Serverless Design Patterns for Rethinking Traditional Enterprise Application ...Serverless Design Patterns for Rethinking Traditional Enterprise Application ...
Serverless Design Patterns for Rethinking Traditional Enterprise Application ...
 
2013-11-13 Cloud Based Accounting Systems
2013-11-13 Cloud Based Accounting Systems2013-11-13 Cloud Based Accounting Systems
2013-11-13 Cloud Based Accounting Systems
 
How a CPA Can Leverage Cloud ERP to Improve Client Relationships
How a CPA Can Leverage Cloud ERP to Improve Client RelationshipsHow a CPA Can Leverage Cloud ERP to Improve Client Relationships
How a CPA Can Leverage Cloud ERP to Improve Client Relationships
 
Tech Talk: Five Simple Steps to a More Powerful Database Experience
Tech Talk: Five Simple Steps to a More Powerful Database ExperienceTech Talk: Five Simple Steps to a More Powerful Database Experience
Tech Talk: Five Simple Steps to a More Powerful Database Experience
 
Integratie_met_System_Center_Service_Manager (1).pptx
Integratie_met_System_Center_Service_Manager (1).pptxIntegratie_met_System_Center_Service_Manager (1).pptx
Integratie_met_System_Center_Service_Manager (1).pptx
 
SAP performance testing & engineering courseware v01
SAP performance testing & engineering courseware v01SAP performance testing & engineering courseware v01
SAP performance testing & engineering courseware v01
 
Data Server Manager for DB2 for z/OS
Data Server Manager for DB2 for z/OS Data Server Manager for DB2 for z/OS
Data Server Manager for DB2 for z/OS
 
Jean-René Roy: Integrate Legacy App with Dynamic CRM
Jean-René Roy: Integrate Legacy App with Dynamic CRMJean-René Roy: Integrate Legacy App with Dynamic CRM
Jean-René Roy: Integrate Legacy App with Dynamic CRM
 
NZS-4532 - Bringing Historical Data to Life with IBMs SMF Data Engine
NZS-4532 - Bringing Historical Data to Life with IBMs SMF Data EngineNZS-4532 - Bringing Historical Data to Life with IBMs SMF Data Engine
NZS-4532 - Bringing Historical Data to Life with IBMs SMF Data Engine
 
Solving 21st Century App Performance Problems Without 21 People
Solving 21st Century App Performance Problems Without 21 PeopleSolving 21st Century App Performance Problems Without 21 People
Solving 21st Century App Performance Problems Without 21 People
 
Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...
Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...
Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...
 
Saratoga CRM: Implementing Thin Client at Johnson Controls Inc.
Saratoga CRM: Implementing Thin Client at Johnson Controls Inc.Saratoga CRM: Implementing Thin Client at Johnson Controls Inc.
Saratoga CRM: Implementing Thin Client at Johnson Controls Inc.
 
Enhance ServiceNow with Automated Discovery for Mainframe and IBM i
Enhance ServiceNow with Automated Discovery for Mainframe and IBM iEnhance ServiceNow with Automated Discovery for Mainframe and IBM i
Enhance ServiceNow with Automated Discovery for Mainframe and IBM i
 
Exploring Opportunities in Crisis by Ramco
Exploring Opportunities in Crisis by RamcoExploring Opportunities in Crisis by Ramco
Exploring Opportunities in Crisis by Ramco
 
Prodev Solutions Intro
Prodev Solutions IntroProdev Solutions Intro
Prodev Solutions Intro
 
Impact2014: Practical Performance Troubleshooting
Impact2014: Practical Performance TroubleshootingImpact2014: Practical Performance Troubleshooting
Impact2014: Practical Performance Troubleshooting
 

Dernier

Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about usDynamic Netsoft
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfCionsystems
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AIABDERRAOUF MEHENNI
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 

Dernier (20)

Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about us
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdf
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 

Getting data into microsoft dynamics crm faster

  • 1. #CRMUGSummit | #INreno15 #CRMUGSummit Daniel Cai, KingswaySoft Inc. SESSION CODE: ADC26 GETTING DATA INTO MICROSOFT DYNAMICS CRM FASTER
  • 2. #CRMUGSummit | #INreno15 INTRODUCTION - YOUR PRESENTER  Daniel Cai  Principal Developer @KingswaySoft  7 Years of development experiences with Microsoft Dynamics CRM – Mostly working as a developer  5 times of Microsoft Dynamics CRM MVP since 2011  About KingswaySoft – A leading provider of data integration solutions for Microsoft Dynamics software and beyond • SSIS Integration Toolkit for Microsoft Dynamics CRM • SSIS Integration Toolkit for Microsoft Dynamics AX • SSIS Integration Toolkit for Microsoft Dynamics GP • SSIS Integration Toolkit for Microsoft Dynamics Marketing • SSIS Integration Toolkit for Microsoft Dynamics NAV • SSIS Integration Toolkit for Microsoft Dynamics SL • SSIS Integration Toolkit for Parature • and many more… – Thousands of enterprise clients worldwide depend on our integration solutions to drive their data efficiency 2
  • 3. #CRMUGSummit | #INreno15  Discuss the techniques that you can use to get data into Microsoft Dynamics CRM faster  Discuss some best practices that you utilize in your CRM data integration and migration projects 3 SESSION OBJECTIVES
  • 4. #CRMUGSummit | #INreno15  SSIS Integration Toolkit is used in some occasions in this presentation to discuss the techniques – It is a data integration solution developed by KingswaySoft that I work for – More information available at http://www.kingswaysoft.com/products/ssis-integration- toolkit-for-microsoft-dynamics-crm  The techniques should be transferrable to any other third-party or home- grown solutions in a similar fashion, provided an equivalent option is available  I didn’t invent any tips or tricks, neither did I discover all of them by myself, they all come from the community that I have been learning. The credits go to the generous CRM community and some special individuals. 4 DISCLAIMER
  • 5. #CRMUGSummit | #INreno15  WHY?  WHERE TO START FROM?  HOW?  Final Q&A  Closing & Surveys 5 AGENDA
  • 7. #CRMUGSummit | #INreno15  Web Service Interfaces are generally slow – Dynamics CRM is no exception  You are often constrained by the limited time window – A couple to a few hours time window for your daily integration – Typically a ~50 hours of time window for the initial data migration • Friday 9pm to Monday 6am  Your data volume could be significantly large  You always want to be faster! 7 WHAT ARE THE PROBLEMS
  • 9. #CRMUGSummit | #INreno15  Identify Resources – Technical Resources  Get to know your infrastructure – Networking – Server Capacities  Define a baseline benchmark – How many records in a second are required in order to meet the time window allowed  Define the infrastructure that can help you achieve the desired benchmark  Decide between Buy vs Write 9 DEFINE YOUR STRATEGIES
  • 10. #CRMUGSummit | #INreno15  Optimized Infrastructure – Networking – Firewall – Security Policies – Network Load Balancer  Server Capacity (CRM Server, Database Server, Integration Server) – CPU – Memory – I/O 10 HAVING THE RIGHT INFRASTRUCTURE
  • 11. #CRMUGSummit | #INreno15  CRM Data Import Wizard  Message-driven Integration Solutions – BizTalk – Service Bus – Message Queue  Batch-based ETL Solutions – SSIS – Scribe – Informatica – IBM CastIron 11 CHOOSE THE RIGHT TOOLS
  • 12. #CRMUGSummit | #INreno15  Each tool works somewhat differently  Establish a good understanding of your tools – Know the capabilities – Know the different options to achieve a particular purpose – Know the techniques that can be used to help achieve better performance 12 TRY TO KNOW YOUR TOOLS
  • 13. HOW?
  • 14. #CRMUGSummit | #INreno15 MULTI-THREADING Make sure to update your .config file in order to overcome the connection limit of concurrent service calls <configuration> ... <system.net> <connectionManagement> <add address="*" maxconnection="100"/> </connectionManagement> </system.net> </configuration> TheSSIS way
  • 15. #CRMUGSummit | #INreno15 LEVERAGE MULTI-NODE CLUSTER How to achieve this? • CRM Server URL option in SSIS Integration Toolkit
  • 16. #CRMUGSummit | #INreno15 BULK API  Bulk API is more beneficial when network latency is high  There is an API throttling with CRM Online – At most 2 concurrent ExecuteMultiple requests per organization How to achieve this? • Simply enter a Batch Size in SSIS destination component.
  • 17. #CRMUGSummit | #INreno15  The less fields, the better performance  Some fields may require additional services calls using special SOAP messages when writing to CRM – statecode/statuscode – ownerid – some more • parentsytemuserid and businessunitid (systemuser entity) • businessunitid (team and equipment entities) • Parentbusinessunitid (businessunit entity) – Those special service calls are not necessary if it is an Update and you are using v7.1 or later • For Create or Upsert calls, you still need the additional service calls (as of v7.1).  Any fields registered for CRM plugins/workflows or auditing will have certain performance impact when submitted 17 MINIMIZE THE NUMBER OF FIELDS YOU WORK WITH
  • 18. #CRMUGSummit | #INreno15  Why? – Smaller SOAP message, which in turn results in less networking time – Can avoid firing unnecessary CRM plugins/workflows or auditing that are registered for the fields  How to achieve this? – Simply turn on “Ignore Unchanged Fields” option in CRM destination component 18 AVOID SUBMITTING UNCHANGED FIELDS
  • 19. #CRMUGSummit | #INreno15  CRM Diagnostics Tool – http://CrmServer/tools/diagnostics/diag.aspx  Ideally the latency should be as low as possible – Make sure the integration server (or workstation) is close to the CRM Server – A poor infrastructure can result in high network latency, even the servers are close to each other  Bandwidth should be as high as possible 19 MIND YOUR NETWORK LATENCY
  • 20. #CRMUGSummit | #INreno15  Which servers – CRM Server – Database Server – Integration Server (or workstation)  What to watch – CPU – Memory – I/O – Other CRM performance counters 20 WATCH OUT RESOURCE USAGES ON SERVERS
  • 21. #CRMUGSummit | #INreno15  Plan CRM database growth – Have the right server specification to accommodate the growth – Define data archiving strategies as required – For initial load, consider sizing the database to the target size after the completion of the load to avoid database growth during the load  Cleanup PrincipalObjectAccessBase table as required (to remove orphan records) – http://support.microsoft.com/kb/2664150 • Consider implementing this as a SQL Server agent job to cleanup weekly or monthly to keep your system healthy  Cleanup AsyncOperationBase table as required (to remove completed workflow logs) – http://support.microsoft.com/kb/968520 for one-time cleanup • Make sure you implement the index first, otherwise it could a long time to complete depending on how many records you have • Consider implementing this as a SQL Server agent job to cleanup weekly or monthly to keep your system healthy – For CRM workflows, consider choosing “Automatically delete completed workflow jobs (to save disk space)” option for automatic cleanup – For asynchronous plugin, consider choosing “Delete AsyncOperation if StatusCode = Successful” option for automatic cleanup 21 MANAGE DATABASE GROWTH
  • 22. #CRMUGSummit | #INreno15  If your data integration or migration process involves any querying, you should review your query performance  Depending on the situation, if any query involves non-indexed CRM database field(s), you might want to add custom index(es) – CRM On-Prem, add custom indexes to CRM database directly – CRM Online, request adding custom indexes by raising a support ticket. Alternatively, use the following techniques to add custom indexes automatically. • Add the field to CRM quick find view • Create CRM alternate key – will have to be unique  Note that having an excessive number of indexes in one database table (entity) can adversely affect your performance  Where to start from? – Look for long running queries in CRM Server Windows Log • CRM logs any database queries that take longer than 10s – SQL Server “Missing Index” tables  Query Tuning – Show Actual Execution Plan – SQL Server Management Studio (SSMS) – SQL Server Database Engine Tuning Wizard 22 MANAGE DATABASE INDEXES
  • 23. #CRMUGSummit | #INreno15  Reschedule CRM Maintenance Jobs – By default, the time when CRM maintenance jobs kick off depends on when the server was installed (or the organization being provisioned) – which could be in busy business hours – Ideally your integration job kicks off shortly after the maintenance job finishes  Disable the Reindex All job – What it does? • Reindex • Shrink your CRM database – Create your own CRM database maintenance jobs 23 MANAGE CRM MAINTENANCE JOBS
  • 24. #CRMUGSummit | #INreno15  Manual primary keys could cause performance issue down the road – CRM Server generates sequential GUID values for best performance – Use manual primary keys only for migration purpose  Further read: – The Dangers of Guid.NewGuid(); • http://blogs.msdn.com/b/crminthefield/archive/2015/01/19/the-dangers-of-guid- newguid.aspx 24 AVOID GENERATING PRIMARY KEY (GUID) YOURSELF
  • 25. #CRMUGSummit | #INreno15  Turn on SQL Server RCSI (Read Committed Snapshot Isolation) – https://msdn.microsoft.com/en-us/library/tcbchxcb(v=vs.110).aspx ALTER DATABASE CrmOrgName_MSCRM SET ALLOW_SNAPSHOT_ISOLATION ON ALTER DATABASE CrmOrgName_MSCRM SET READ_COMMITTED_SNAPSHOT ON  Add NOLOCK hint to your FetchXML Query <fetch mapping="logical" no-lock="true"> <entity name="account"> <attribute name="name" /> <filter> <condition attribute="creditlimit" operator="gt" value="1000000" /> </filter> </entity> </fetch> 25 DEAL WITH LOCKS
  • 26. #CRMUGSummit | #INreno15  Help reduce database deadlocks  Recommended for CRM database, but not for data warehouse 26 SQL SERVER – MAX DEGREE OF PARALLELISM
  • 27. #CRMUGSummit | #INreno15  Set CRM database to Simple Recovery mode – No SQL Server transaction logs  Disable IIS Logging  Disable all CRM workflows / plugins and auditing  Running data integration on CRM server itself – Best possible network latency – You need to alternate the target service URL to point to local server as shown previously 27 EVEN MORE AGGRESSIVE MEASURES – SOME MAY ONLY BE PRACTICAL FOR INITIAL LOAD
  • 28. #CRMUGSummit | #INreno15  White Papers – Microsoft Dynamics CRM 2015 White Papers & Technical Documentation • http://blogs.msdn.com/b/crminthefield/archive/2015/01/05/microsoft-dynamics-crm-2015-white-papers-amp-technical- documentation.aspx – Optimizing and maintaining the performance of a Microsoft Dynamics CRM 2011 server infrastructure • http://www.microsoft.com/en-ca/download/details.aspx?id=27139  Wikipedia – Dynamics CRM Quick Optimization Guide • http://social.technet.microsoft.com/wiki/contents/articles/13661.dynamics-crm-2011-quick-optimization-guide.aspx  Blog Posts – http://blogs.msdn.com/b/crminthefield/archive/2012/04/26/avoid-performance-issues-by-re-scheduling-crm-2011- maintenance-jobs.aspx  Best Practices – Best practices for developing with Microsoft Dynamics CRM • https://msdn.microsoft.com/en-us/library/gg509027.aspx 28 RESOURCES
  • 29. #CRMUGSummit | #INreno15  Daniel Cai, KingswaySoft – daniel.cai@kingswaysoft.com – Twitter: danielcai – LinkedIn: https://ca.linkedin.com/in/danielcai – http://www.kingswaysoft.com 29 CONTACT INFO
  • 30. #CRMUGSummit | #INreno15 THANK YOU!  Please complete & turn in your survey now  Session code: ADC26  Visit the online CRMUG Summit 2015 community to download these slides, ask questions, and connect with participants  Visit the CRMUG Medics in the HUB to get expert advice on your CRM-related problems! 30

Notes de l'éditeur

  1. Title slide to be customized
  2. Introduction slide to be customized. If multiple presenters, add additional intro slides
  3. Objectives slide to be customized
  4. Objectives slide to be customized
  5. Agenda slide to be customized
  6. Example of section slide
  7. Example content slide
  8. Example of section slide
  9. Example content slide
  10. Example content slide
  11. Additionally, you can write integration solutions using CRM SDK
  12. Example content slide
  13. Example of section slide
  14. Example content slide
  15. Example content slide
  16. Example content slide
  17. Example content slide
  18. Example content slide
  19. Example content slide
  20. Example content slide
  21. Example content slide
  22. Example content slide
  23. Example content slide
  24. Example content slide
  25. Add presenter contact info (no logos or images)
  26. Add presenter contact info (no logos or images)
  27. Thank you slide
  28. Final slide