Forum Discussion
Shawn Keene
Aug 07, 2018Brass Contributor
Power Query Join Transform on a Very Large Table
I'm having trouble with getting data from a very large Oracle SQL table. It seems like Query Folding may not be occurring with my left inner join, so the server is returning all 519 million rows of ...
Sep 12, 2019
Hello Shawn,
Here is a good reference for your problem: https://www.thebiccountant.com/2019/04/18/query-folding-joinkind-inner-gotcha-power-bi-power-query/
Since you are dealing with a very large data, on the beginning of your large table Keep the first ( or last since you want the latest data) 1k rows, then perform the merge with the date table. after performing the merge, expand the date table, and perform your filter.
after that, remove the "Keep Rows" step, and the query folding should be fine again.
Here is a good reference for your problem: https://www.thebiccountant.com/2019/04/18/query-folding-joinkind-inner-gotcha-power-bi-power-query/
Since you are dealing with a very large data, on the beginning of your large table Keep the first ( or last since you want the latest data) 1k rows, then perform the merge with the date table. after performing the merge, expand the date table, and perform your filter.
after that, remove the "Keep Rows" step, and the query folding should be fine again.
Shawn Keene
Sep 12, 2019Brass Contributor
I appreciate the response, however the root issue was addressed in a update for the Oracle connector, in the 1903 release. So it's now a moot point.
I'd also like to thank the development team, who responded to my in-app feedback from the frown icon, they emailed me directly to let me know the fix was in the pipeline and when the release date would be. Very awesome service.
I'd also like to thank the development team, who responded to my in-app feedback from the frown icon, they emailed me directly to let me know the fix was in the pipeline and when the release date would be. Very awesome service.