#performance

Posts tagged with this topic.

Benchmark: TDS Endpoint vs QueryExpression vs FetchExpression

Nov 29, 2025

I read Mark Carrington's blog post about his latest findings on TDS Endpoint revisited, which can be found here. One of the key points that is interesting is his finding about the internal Dataverse message ExecutePowerBISql, which intersects with the function I created last time...

Dataverse: Updated ServiceClient Strategy For Better Performance

Mar 9, 2025

If you remember, I created this blog post on how to create a class that wrapped ServiceClient. I must do it because instancing a ServiceClient is expensive (around 2 seconds). Hence, I need to find a way to "store" it in memory and ensure it is always ready when I need to call...

Benchmark: Comparing Pooling Setting in TDS Endpoints

Dec 7, 2024

We must construct the SQL Connection String when connecting to Dataverse TDS Endpoints via .NET code. The structure of it by default is just "Server={orgname}.crm.dynamics.com;Database={orgname};Persist Security Info=False;". When we talk about SQL connection strings, there are...

Dataverse: UpsertRequest vs Custom API. Which one is faster?

Jul 8, 2023

For those who don't know, we already have UpsertRequest for so long (I learned how to use it correctly in this blog post that you can read here). UpsertRequest is a feature where we can request Dataverse to create or update the data based on columns that we are defined. In...

Dataverse: Improve Performance using Partition Key

Mar 19, 2022

Do you know we can pass the partitionID parameter when doing CRUD to improve performance? The information I got from this documentation link. Today we will prove how what is the difference between using the partitionID and not using it. To collect the data, I'll run below code:...

Dynamics CRM: QueryExpression and how to boost the performance!

Dec 11, 2018

In my company where I work, we have a custom program that will process big load data. Per running, it can process around 50.000 records. The average finished can be more than 3 hours ++. After I check, one of the things that make this slowness is because of the retrieving...