https://dagster.io/ logo
#ask-community
Title
# ask-community
w

Will Holley

04/14/2023, 5:42 PM
Hey – What is the recommended method for loading "Regular" Assets and Source Assets into the same group?
c

claire

04/14/2023, 6:21 PM
Hi Will. One easy way is to use `load_assets_from_package_module`/`load_assets_from_current_module` with the
group_name
param set
👍 1
w

Will Holley

04/14/2023, 8:39 PM
Thanks, Claire.
Could you also tell me whether a Source Assets is cached after its initial load or whether each downstream dependency (of the load-calling asset) re loads the source asset?
c

claire

04/14/2023, 9:14 PM
Each downstream dependency loads the source asset once. Under the hood each asset that reads from the source asset separately calls
load_input
on the source asset's IO manager
w

Will Holley

04/14/2023, 9:17 PM
Ah, that's what I thought. Any way I can disable that?
The source asset hasn't changed between the initial call and the downstream calls
c

claire

04/14/2023, 9:23 PM
Unfortunately no native way. One workaround would be to have an intermediate asset between the source asset and the downstream assets
w

Will Holley

04/14/2023, 9:27 PM
Hmm ok, thanks for the info!