简体   繁体   中英

How to optimize django-import-export?

I have a data in Excel around 20,000 records. I using django-import-export extension for import data.I tried to import data but very slow about 10 minute. I think one thing to make it slow that is django-import-export render 20,000 records on preview table. I want to know how to speedup?

I made some notes on speeding up django-import-export here . Using the optimisations I describe I could import 20k rows in ~5 seconds on my dev laptop.

The best way is to override save_instance() to use bulk_create() , but there are other optimisations you can make.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM