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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
yoshihirok
Post Prodigy
Post Prodigy

Can I speed up of import query from CSV file with 30,000,000 rows ?

I want to speed up of import query from CSV file with 30,000,000 rows.

 

The CSV file have weekly fact data of 2 years.

and I need to import the CSV file to Power BI Desktop per weekly.

 

Now, I take 20 minutes for import.

How can I speed up of import.

 

My test environment:

PC: Intel NUC

CPU: Core i5-4250U, 1.3GHz, 2 core, 4 logical processor.

MEM: 16 GB

Storage: SSD 256 GB.

 

During Import:

CPU average is 60%, Storage read is 20 MB/s.

 

Regards,

Yoshihiro Kawabata

7 REPLIES 7
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @yoshihirok,

 

Based on my research, I found that unchecking the "Allow data preview to download in the background." under File - Options and Settings - Options - (Current File) - Data Load - Background Data may speed up the import query. Could you have a try to see if it works?

 

In addition, if you're using the "Folder" connector to import your CSV files, then you don't need to import again every time when there are new CSV files added in the folder from Desktop and republish them to the service. You can just schedual a refresh on the service, and every new files in the folder will be included in your dataset after a refresh finished.Smiley Happy

 

Regards

Hi, @v-ljerr-msft thank you for your research information.

 

"Allow data preview to download in the background."

 

The update time of Off/On is same.

Today, I verify Off/On update  time.

 

 "Folder"

 

I'm not using "Folder" in this case,

My csv is one file.

 

Regards,

Yoshihiro Kawabata

If @v-ljerr-msft 's suggestions don't speed up enough, you can consider incremental load workaround: http://www.thebiccountant.com/2017/01/11/incremental-load-in-powerbi-using-dax-union/

 

Prerequisite is a fact-table with entries entries who cannot be changed once made (which is the case on many bookkeeping systems):

1) Load historical data once and set to "Don't refresh" -> retrieve cut-off-criteria

2) Create second table for UNION with current data

3) From time-to-time: Move your "new old-data" from 2) to 1) during quiter times, so that 2) will start from scratch

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

jb007
Frequent Visitor

Dealing with a similar issue at the moment (around 25 million rows spread across 50 .csv files), refresh time is really slow.

 

Based on what I've read online, I don't think there's any effective way of speeding things up (at least not without doubling the data with your method, 

 

 

 

 

ImkeF
Community Champion
Community Champion

Hi @jb007,

how long does your "really slow" actually take?

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

jb007
Frequent Visitor

About 20 minutes, @Imke.

I don't even have 4 minutes like Madonna, I want it to take 1 minute or less.

 

So I'm thinking SSAS Tabular and partitioning the table by week could help. It would load 1 week only, instead of over 6 years of data, so 300x less data. 

ImkeF
Community Champion
Community Champion

Yes, that's the way to go then: Use partitions in SSAS tabular model.

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.