Forum Discussion

TomDeas's avatar
TomDeas
New Member
2 years ago
Solved

Query Efficiency - Stack References or Duplicate?

Long time listener, first time caller.   Power Query RE: building predictive models. Context, I have a dataset (c.400k rows, 140 columns) which is curated elsewhere and ingested into PQ as a flat f...
  • BA_Pete's avatar
    2 years ago

    Hi TomDeas ,

     

    To answer your main question: There's no difference between Referencing and Duplicating in terms of internal processing. There are some edge cases where Power Query/Dataflows will cache results, but it's safest to just assume at least one source hit per query regardless of whether duplicated or referenced.

     

    As you rightly alluded to, the savings will be in your adjustment time. If you can create a core query that contains all generic transformations, then reference this for each subset of unique transformations, you will limit the number of areas that you need to make adjustments in.

     

    Pete