Repository navigation
sdk: python: Pass objects instead of IDs - #3870
Merged
Merged
Conversation
Fields named `id` aren’t converted. Async mode has a performance benefit because all id fields are resolved concurrently before executing the main query. Had a lingering issue where the linter was ignoring the generated files because of long docstrings from the API so I fixed it as well. Signed-off-by: Helder Correia <[email protected]>
helderco
force-pushed
the
python/hide-ids
branch
from
November 16, 2022 11:50
f5f89ce to
7139c12
Compare
Contributor
Author
|
Which skipped test? |
Contributor
Author
|
@gerhard I realize you must mean the docker provisioning test which doesn't run on dagger-in-dagger. More context 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.
Fixes #3690
Python’s implementation of #3558
Before
After
Sync
Sync is also supported but there’s a performance benefit with async because all id fields get resolved concurrently before executing the main query. So even though you may only have one
awaitand doesn’t seem like there’s benefit, it’s not the case.Signed-off-by: Helder Correia