Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Difference between writing a native query and applying a filter in M

Hi everyone I would like to understand if there is any difference, in terms of performance, between writing a native query to filter some rows and doing that same operation in power query steps  ...
  • Anonymous's avatar
    Anonymous
    6 years ago

    AFAIK it's basically as Greg_Deckler said.

     

    If you're writing custom SQL, you have to be 100% sure of your SQL skills and perform all the transformations in the SQL script, because it will break query folding and you won't be able to fold any step done in the PQ interface.

     

    If your data source supports query folding and you're performing very simple transformations such as filtering columns, these should be folded and you shouldn't notice any difference in performance.