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
MathFour
Frequent Visitor

Update MySQL dataset with only additional rows (not reload the entire thing)

This is on Power BI desktop...

 

I have 40 million rows (and counting) in a MySQL database and one column is a JSON package which has to be parsed. This isn't an issue, but it does take a while to load. (it takes about 2 minutes per million records to load - about 1.5 hours now and it keeps growing)

 

I'd like to just add the rows that are new, but I can't figure out how to just add for id > 40000000 without getting rid of all the rows with id < 40m. Is there a way to do this?

 

I'm pondering a workaround by adding separate queries for each month (or chunk of id numbers) and then associate them, but I fear I'll have to work harder to get it all working as one dataset like it should.

 

Can I do this easily and if not, is there a hard but effective way?

1 ACCEPTED SOLUTION
v-yuezhe-msft
Employee
Employee

@MathFour,


There are some suggestions for you.

a. Write specific SQL query  to import required columns and rows from MySQL database  to Power BI Desktop.
0.PNG

b. During the import process, disable the following highlighted options in Power BI Desktop.
1.PNG

c. Create views for different date time in MySQL database if necessary, and then import the views in Power BI Desktop.


Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yuezhe-msft
Employee
Employee

@MathFour,


There are some suggestions for you.

a. Write specific SQL query  to import required columns and rows from MySQL database  to Power BI Desktop.
0.PNG

b. During the import process, disable the following highlighted options in Power BI Desktop.
1.PNG

c. Create views for different date time in MySQL database if necessary, and then import the views in Power BI Desktop.


Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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