Loading

Developer Console, Metadata API, or SFDX is slow

Date de publication: Oct 13, 2022
Description
There are several reasons why you can experience latency while developing code in Salesforce. You may notice slow response while trying to Save and Deploy Class or Component files while using SFDX or in Developer Console. We'll give you all the information you need to know on why you can experience the latency. 
Résolution

Reason for operation latency

  • Unmanaged code: The Apex compiler compiles all dependencies upon saves. If there is a significant amount of code (say > 2MB), then this could result in very high compile times per each save/push to the platform.
  • Dequeue delay:  The operation of saving code form IDE tools like VS Code, SFDX, Developer console are always asynchronous for its current version. 
  • Large code base: Consider working with ANT build scripts. Take a look at the build.xml in the Cumulus CI.

Other Tools

Numéro d’article de la base de connaissances

000387835

 
Chargement
Salesforce Help | Article