Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[demo] Passing in the LoadingContext through the blocking batch load fns #25270

Conversation

OwenKephart
Copy link
Contributor

Summary & Motivation

As title. This lets us use the loading_context for get_asset_status_cache_values, which saves us from needing to re-fetch the asset records in here again.

Also some other random stuff I was trying in order to improve overall perf

How I Tested These Changes

Perf tested before / after.

Changelog

Insert changelog entry or delete this section.

Copy link
Contributor Author

OwenKephart commented Oct 15, 2024

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @OwenKephart and the rest of your teammates on Graphite Graphite

@briantu briantu force-pushed the briantu/make-compute-subset-async branch 2 times, most recently from 4b561cd to b0136c3 Compare October 15, 2024 22:43
@briantu briantu force-pushed the 10-14-_demo_passing_in_the_loadingcontext_through_the_blocking_batch_load_fns branch from b850e29 to e86b8ad Compare October 15, 2024 22:43
@briantu briantu force-pushed the briantu/make-compute-subset-async branch from 9329171 to 6ab40ba Compare October 17, 2024 19:01
@briantu briantu force-pushed the 10-14-_demo_passing_in_the_loadingcontext_through_the_blocking_batch_load_fns branch from e86b8ad to 4ccd03c Compare October 17, 2024 19:01
@briantu briantu force-pushed the briantu/make-compute-subset-async branch from 1fb4fec to 3d1e462 Compare October 17, 2024 20:36
@briantu briantu force-pushed the 10-14-_demo_passing_in_the_loadingcontext_through_the_blocking_batch_load_fns branch from ad5a821 to 06c074e Compare October 17, 2024 20:36
@briantu briantu force-pushed the briantu/make-compute-subset-async branch from 63527ad to 206d74c Compare October 18, 2024 17:59
@briantu briantu force-pushed the 10-14-_demo_passing_in_the_loadingcontext_through_the_blocking_batch_load_fns branch from 06c074e to 6ab2546 Compare October 18, 2024 17:59
@briantu briantu force-pushed the briantu/make-compute-subset-async branch 5 times, most recently from 0535e53 to 647eb5d Compare October 21, 2024 22:00
briantu added a commit that referenced this pull request Oct 22, 2024
## Summary & Motivation
This lets us use the loading_context for get_asset_status_cache_values, which saves us from needing to re-fetch the asset records in here again.

Copied from demo PR #25270

## How I Tested These Changes
Perf test before/after
```
pytest python_modules/dagster/dagster_tests/definitions_tests/declarative_automation_tests/perf_tests/test_perf.py
```
Grzyblon pushed a commit to Grzyblon/dagster that referenced this pull request Oct 26, 2024
## Summary & Motivation
This lets us use the loading_context for get_asset_status_cache_values, which saves us from needing to re-fetch the asset records in here again.

Copied from demo PR dagster-io#25270

## How I Tested These Changes
Perf test before/after
```
pytest python_modules/dagster/dagster_tests/definitions_tests/declarative_automation_tests/perf_tests/test_perf.py
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants