Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Varishtha
Frequent Visitor

Query Folding with MySQL

My data sits in MySql and I want to use incremental refresh feature, but it seems like my queries are not foldable. I checked every step in power query and 'View Native Query' option was greyed out for all steps, which means at no step can my query be folded. I read somewhere that without foldable queries incremental refresh is useless. How can I get around this?

Also can i use incremental refresh on more than 1 table inthe same power bi file?

1 ACCEPTED SOLUTION
edhans
Super User
Super User

According to Query folding on native queries - Power Query | Microsoft Learn MySQL isn't supported for Query Folding, so this will not work. I am not aware of any way around it. To fold, Power Query needs to understand the query language of the server it is connected to and send the SQL commands back to have the server process it. It doesn't look like MS has included MySQL as a supported engine.

 

Without folding, IR is useless. If you have 6 partitions (months) for example, with IR, each month gets read into its proper partition and only recent months are refreshed. Without folding, the entire table is read in to every partition then whatever isn't needed is discarded, so it would actually in this example read the entire table in 6 times. So worse than useless, it will slow you down.

 

However, if you can get a supported datasource, then yes you can set up IR on as many tables in a single semantic model as you want.

 

Query folding on native queries - Power Query | Microsoft Learn



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

1 REPLY 1
edhans
Super User
Super User

According to Query folding on native queries - Power Query | Microsoft Learn MySQL isn't supported for Query Folding, so this will not work. I am not aware of any way around it. To fold, Power Query needs to understand the query language of the server it is connected to and send the SQL commands back to have the server process it. It doesn't look like MS has included MySQL as a supported engine.

 

Without folding, IR is useless. If you have 6 partitions (months) for example, with IR, each month gets read into its proper partition and only recent months are refreshed. Without folding, the entire table is read in to every partition then whatever isn't needed is discarded, so it would actually in this example read the entire table in 6 times. So worse than useless, it will slow you down.

 

However, if you can get a supported datasource, then yes you can set up IR on as many tables in a single semantic model as you want.

 

Query folding on native queries - Power Query | Microsoft Learn



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors