sfdx force:source:retrieve extremely slow

See original GitHub issue

Summary

Since last Summer '21 Release, we noticed that some features are being really slow.

Steps To Reproduce:

Repository to reproduce: private company repository. Steps:

  1. go to default path cd \force-app\main\default
  2. run command retrieves from org sfdx force:source:retrieve -p .\applications,.\aura,.\classes,.\experiences,.\flexipages,.\layouts,.\networks,.\networkBranding,.\objects,.\pages,.\profiles,.\roles,.\settings,.\sites,.\siteDotComSites,.\sharingRules,.\tabs --loglevel fatal
  3. waiting for the result

Expected result

Usually, this command runs about 3-5 minutes at most.

Actual result

The command is taking more than an hour to achieve the result.

Additional information

Salesforce Instance: NA82 Environment: Production SFDX CLI Version: sfdx-cli/7.105.0 win32-x64 node-v14.17.0 SFDX plugin Version: @oclif/plugin-autocomplete 0.3.0 (core) @oclif/plugin-commands 1.3.0 (core) @oclif/plugin-help 3.2.2 (core) @oclif/plugin-not-found 1.2.4 (core) @oclif/plugin-plugins 1.10.0 (core) @oclif/plugin-update 1.4.0-3 (core) @oclif/plugin-warn-if-update-available 1.7.0 (core) @oclif/plugin-which 1.0.3 (core) @salesforce/sfdx-trust 3.6.0 (core) alias 1.1.10 (core) auth 1.6.1 (core) config 1.2.8 (core) generator 1.1.7 (core) salesforcedx 51.16.0 (core) ├─ data 0.4.10 (core) ├─ custom-metadata 1.0.12 (core) ├─ apex 0.2.2 (core) ├─ limits 1.2.1 (core) ├─ user 1.3.0 (core) ├─ org 1.6.6 (core) ├─ schema 1.0.7 (core) ├─ templates 51.5.0 (core) ├─ @salesforce/sfdx-plugin-lwc-test 0.1.7 (core) └─ salesforce-alm 51.6.26 (core) sfdx-cli 7.105.0 (core) telemetry 1.2.1 (core) OS and version: Windows 10 Enterprise x64

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
renanlqcommented, Jun 24, 2021

Hi @WillieRuemmele,

Since our last messages, our org seems to be more stable … so that we were able to run the source retrieve command without any problem. So that think that we would close this issue.

Additionally, thanks for the plugin, we are testing it now.

1reaction
WillieRuemmelecommented, Jun 21, 2021

hmmm interesting. We haven’t changed those commands for sometime, we’ve been working on rewriting them to use a faster library.

you can checkout the soon-to-be-announced beta source plugin by installing it with sfdx plugins:install @salesforce/plugin-source , and uninstalling it with sfdx plugins:uninstall @salesforce/plugin-source that should make things a little faster. Let me know if you try the new plugin 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

sfdx force:source:retrieve very slow (5 mins+ for single file) #18
Trying to retrieve a single file via VSCode with Salesforce Extensions is taking an excessive amount of time. This behaviour has been seen...
Read more >
SFDX: Deploy Source to Org: Very slow
The force:source:deploy command can't determine a minimal deployment package to generate, so it deploys everything.
Read more >
Developer Console, Metadata API, or SFDX is slow
There are several reasons why you can experience latency while developing code in Salesforce. You may notice slow response while trying to Save...
Read more >
SFDX on sandbox is super slow as compared to VScode
It looks like the way Illuminated cloud uses SFDX for sandbox makes it super slow. Saving a single file in Illuminated cloud ,...
Read more >
Salesforce Extension Pack Review: Breakthrough Tool Needs ...
The Salesforce Extension Pack is a collection of eight separate VS Code ... sfdx force:source:retrieve --manifest=manifest/package.xml.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found