Dataverse: UpsertRequest vs Custom API. Which one is faster?
Image Source: Shutterstock.com
Jul 10, 2023 11:00 AM

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

External Blog Post

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

Dataverse has two different methods for managing data: UpsertRequest and Custom API. The UpsertRequest has been around for a significant number of years. By using it, one can easily request Dataverse to create or update data based on the specifications set in columns. The question of speed between the two, however, is up for debate. Many like to compare these two methods to find which one is truly faster in executing data management tasks. The results of speed performance may vary based on several factors.

  • UpsertRequest has been longer in use within Dataverse.

  • UpsertRequest tool lets users request Dataverse to create or update data based on defined columns.

  • A comparison of the speed performance between UpsertRequest and Custom API is often a topic of discussion among users.

  • The speed can potentially differ due to various influencing factors.

Microsoft Dataverse, previously known as Common Data Service (CDS), is a light cloud-based storage system for Microsoft Power Apps. It's a system to securely store and manage data that's used by business applications.
Dataverse is integrated with the Microsoft Power Platform (including Power Apps, Power Automate, Power Virtual Agents, and Power BI) and lets you securely store and manage data that's used by these business applications.

 
 
It provides a Microsoft Azure-based data storage solution that can scale and secure data and metadata, as well as integrate with Microsoft's cloud-based analytics and AI tools. Essentially, Dataverse abstracts the underlying data and storage systems, and presents data in a tabular form to the user. This tabular format simplifies how users and developers access the data stored in the system.
 
 

     

Further Observations on the Dataverse UpsertRequest vs Custom API Speed Performance

In-depth analyses of the executions of both UpsertRequest and Custom API reveal that their speed performances are not consistently the same. Factors such as the amount of data, type of data, structure, and implementation can contribute significantly to their efficiency. Therefore, it might be more thorough to evaluate these methods based on specific use-cases, as the "faster" method may simply depend on the circumstances.

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

Dataverse is a powerful data management service from Microsoft that allows users to store, manage, and analyze data. In particular, Dataverse offers two methods for data manipulation: UpsertRequest and Custom API. UpsertRequest is a feature that allows users to create or update data in Dataverse based on columns that they have specified. Custom API, on the other hand, is a way for developers to build custom applications that interact with Dataverse. This article explores the differences between UpsertRequest and Custom API and which one is faster.

When using UpsertRequest, users can make requests to Dataverse to create or update the data based on columns that they have defined. This process is relatively simple, but UpsertRequest has certain limitations. For example, UpsertRequest is limited to a maximum of 200 records per batch and each batch must be the same size. Additionally, UpsertRequest does not support multiple records with the same key.

Custom API, on the other hand, allows developers to build custom applications that interact with Dataverse. This opens up a wide range of possibilities for developers and users, as they can create applications tailored to their specific needs. Custom API can support multiple records with the same key, and it also allows for larger batches of records to be processed. However, Custom API is more complex to implement and requires a deeper understanding of the Dataverse platform.

When it comes to speed, both UpsertRequest and Custom API can be equally fast depending on the implementation. While UpsertRequest is easier to implement, it does have certain limitations that can slow down the process. Custom API, on the other hand, is more complex to implement, but can be faster if implemented correctly.

In conclusion, both UpsertRequest and Custom API have their own advantages and disadvantages. While UpsertRequest is relatively simple to use, it does have certain limitations that could limit its speed. Custom API, on the other hand, is more complex to implement, but allows for more flexibility and can be faster if implemented correctly.

Ultimately, the decision of which method to use depends on the user's needs and requirements. Both UpsertRequest and Custom API can be used to manipulate data in Dataverse, and the choice of which one to use should be based on the specific needs of the user.

 

More links on about Dataverse: UpsertRequest vs Custom API. Which one is faster?

Dataverse Performance: Custom API vs Action with CWA
Jul 8, 2021 — Since we don't have to assign input and output parameters in the action, is calling a Custom API faster than calling an identical Custom Process ...
Dataverse Custom API: Function (GET) vs Action (POST)
Mar 25, 2021 — While the Custom API model shares a lot of similarities with the traditional Custom Action model that is available since Dynamics 2013, it also ...
Improving Insert/Update/Delete Performance in D365/Dataverse
Dec 4, 2020 — Applying the changes to my code from this sample gets me a slightly better speed improvement compared to ExecuteMultipleRequest – my 5,000 ...
The New Way of Creating Custom Actions in Dataverse
Mar 1, 2021 — Custom API is the new and advanced way of registering the Custom Message on Dynamics CRM with the Code First approach. One Pic = 1000 words!
Implementing Dataverse Custom APIs (a.k.a ... - Allan De Castro
Jan 5, 2021 — It is only recently that Microsoft announced the notion of Custom API to both replace and extend Custom Actions.
Guide on How to Use Custom APIs (now called ...
May 1, 2021 — Guide on How to Use Custom APIs (now called Custom Actions) to create your own APIs in Dataverse / Power Apps - CRM Software Blog | Dynamics ...
Dataverse Web API 101 - Tim Hanewich
Sep 7, 2022 — Dataverse is low-code/no-code friendly data service for storing both structured and unstructured data behind a role-based security model.
Microsoft Dataverse: Features and Design Considerations
Jul 15, 2022 — We can access Dataverse from a custom solution through OData API services. The Web API is one of two web services we can use to work with data ...

Keywords

Dataverse UpsertRequest, Custom API, Dataverse Performance, Data Creation, Data Update, Data Columns