SOLVED

Why power query consumes all my resources?

%3CLINGO-SUB%20id%3D%22lingo-sub-2726356%22%20slang%3D%22en-US%22%3EWhy%20power%20query%20consumes%20all%20my%20resources%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2726356%22%20slang%3D%22en-US%22%3EHello%20all!!%3CBR%20%2F%3E%3CBR%20%2F%3EI'm%20having%20a%20problem%20using%20power%20query%3A%20i%20have%2012%20.CSV%20files%20in%20a%20folder%2C%20i%20import%20them%20using%20the%20folder%20load%20capabilities%2C%20but%2C%20when%20i%20try%20to%20do%20more%20operations%20in%20the%20query%20(merging%2C%20grouping)%2C%20the%20entire%20system%20lags%2C%20even%20the%20windows%20clock%20gets%20freezed.%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20final%20appended%20query%20is%20about%206%20million%20rows%2C%20i%20use%20excel%202016%2064%20bits%20version%2C%20my%20machine%20is%20a%20Dell%20Lattitude%2032%20Gb%20RAM%20Core%20i7%207th%20gen.%3CBR%20%2F%3E%3CBR%20%2F%3EWhen%20i%20pull%20data%20from%20a%20SQL%20source%20i%20could%20pull%20over%2030%20million%20rows%2C%20no%20lagging%20whatsoever.%3CBR%20%2F%3E%3CBR%20%2F%3EAm%20i%20doing%20something%20wrong%3F%3CBR%20%2F%3E%3CBR%20%2F%3EThank%20you%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2726356%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2726847%22%20slang%3D%22en-US%22%3ERe%3A%20Why%20power%20query%20consumes%20all%20my%20resources%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2726847%22%20slang%3D%22en-US%22%3Edid%20you%20close%20and%20load%20as%20a%20connection%3F%3C%2FLINGO-BODY%3E
Occasional Visitor
Hello all!!

I'm having a problem using power query: i have 12 .CSV files in a folder, i import them using the folder load capabilities, but, when i try to do more operations in the query (merging, grouping), the entire system lags, even the windows clock gets freezed.

The final appended query is about 6 million rows, i use excel 2016 64 bits version, my machine is a Dell Lattitude 32 Gb RAM Core i7 7th gen.

When i pull data from a SQL source i could pull over 30 million rows, no lagging whatsoever.

Am i doing something wrong?

Thank you
2 Replies
did you close and load as a connection?
best response confirmed by Jsanta07 (Occasional Visitor)
Solution

@Jsanta07 

If you use modular approach that could help. Use separate query/queries to load data, another query to merge (one for each merging), another to combine, etc. Grouping could be critical for the performance, check if it could be optimized. Remove unnecessary columns on early stages.

 

SQL connector in general faster and perhaps query folding works in this case, that means transformations are done on the server.