Repository navigation
fix: handle +100K comps when resolving from org W-17876861 - #1511
Merged
Merged
Conversation
cristiand391
force-pushed
the
cd/manifest-tons-of-metadata
branch
from
February 25, 2025 13:52
221e079 to
b4f2b96
Compare
shetzel
approved these changes
Feb 25, 2025
cristiand391
commented
Feb 25, 2025
| if (mdType.name === registry.getRegistry().types.standardvalueset.name) { | ||
| shouldQueryStandardValueSets = true; | ||
| return []; | ||
| } |
Contributor
Author
There was a problem hiding this comment.
kinda unrelated change and doesn't have any perf impact, just simplified this b/c currying always makes it annoying to jump into funcs when attaching a debugger and didn't seem needed.
cristiand391
commented
Feb 25, 2025
|
|
||
| const metadataListStub = $$.SANDBOX.stub(connection.metadata, 'list'); | ||
|
|
||
| const classesQty = 200_000; |
Contributor
Author
There was a problem hiding this comment.
120K is enough to get this UT fail on my macbook but was passing on GHA runners, had to increase to 200K to get it fail 🤷🏼
Contributor
Author
|
@shetzel please squash-merge this if it looks good, there's a bunch of commits here 😁 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
concatinstead of using the spread operator which pushes elements onto the stack:"inconvenient" stack overflow when using spread operator - changing stack size does not work nodejs/node#16870
SF_LIST_METADATA_BATCH_SIZEdefault value to500. This helps on folder type requests where orgs could have thousands, 500 batch size worked on local testing without affecting overall perf.What issues does this PR fix or reference?
forcedotcom/cli#3197
@W-17876861@
Functionality Before
Trying to list +100K components from an org would throw
Maximum call stack size exceeded.Generating a manifest from an org with ~160K components (only
GroupandRole):Functionality After
handle +100K records:
and default 500 batch limit allows to generate a full ~200K manifest from org without excluding any type:
Top 15 metadata sorted by qty in customer org: