Forum Discussion

vidhyasagar's avatar
vidhyasagar
Frequent Visitor
2 years ago
Solved

Best Merge Queries Join Kind for Best Performance on below scenario

In Power Query Editor, you have three queries named ProductCategory, ProductSubCategory, and Product. 1) Every Product has a ProductSubCategory. 2) Not every ProductsubCategory has a parent Produ...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi vidhyasagar 

    Thanks for your quick reply, as you mentioned, the left join will return the results that match the left table, it seachs the related value from the right table, you can refer to the following picture.

     

    The left table will return all value and the right table only return the related value, so  most of its time is spent querying the right table,  but fot the inner join, you can refer to the following picture.

     

    It needs to query the data that meets the conditions in both tables, so it will query both tables.

    So comare them, the left join will be better than inner join, especially if you have a large amount of data, the left join performance is higher than the inner join.

     

    Best Regards!

    Yolo Zhu

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.