# Import is very slow

**URL:** <https://forum.mautic.org/t/import-is-very-slow/16238>\
**Category:** Product Support\
**Created:** [September 23, 2020, 10:54am UTC](https://forum.mautic.org/t/import-is-very-slow/16238 "2020-09-23T10:54:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![obr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/obr/32/433_2.png) [@obr](https://forum.mautic.org/u/obr)\
**Post date:** [September 23, 2020, 10:54am UTC](https://forum.mautic.org/t/import-is-very-slow/16238/1 "2020-09-23T10:54:22Z")

</div>

**Your software**  
My Mautic version is: 2.15.3  
My PHP version is:7.1.33

**Your problem**  
My problem is: Import Contacts is very slow.  
I have upload csv which has 14K plus record and tried with browser import it will take around 1hour and if i choose background import it will take more than 30 minutes.  
It is very slow in both case.

These errors are showing in the log: N/A

Steps I have tried to fix the problem:  
I have checked in version-2.16.3 but it is also taking 30 minutes.  
I have tried [https://github.com/mautic/mautic/issues/2630#issuecomment-252820294](https://github.com/mautic/mautic/issues/2630#issuecomment-252820294)  
but it won’t effect.

Please give me some suggestions to improve speed for import.

Thank you.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [September 23, 2020, 12:41pm UTC](https://forum.mautic.org/t/import-is-very-slow/16238/2 "2020-09-23T12:41:18Z")

</div>

The speed of the background import depends on the batch size you import with your cron job.  
for example:

**mautic:import --limit=500**

will import only 500 contacts every time your cron job runs.  
If your cronjob runs every 5 min, than it will take you 28 minutes  
Try to go in with ssh, and run your cron commands by hand.  
Start a stopwatch on your phone and time it how long the 500 emails takes.

If you see, that it’s really slow - you might need to look for a better hosting, or tweak your config.  
If you see, that the 500 is done within 1 minute, than you can change your cronjob accordingly.

Please note, that if importing 14.000 contact really takes 30 minutes, you’ll have speed issues when you rebuild your segments.

Good luck to you!  
Joey

---

<div class="post-metadata">

**Author:** ![glirette](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/glirette/32/6253_2.png) [@glirette](https://forum.mautic.org/u/glirette)\
**Post date:** [December 20, 2021, 6:47am UTC](https://forum.mautic.org/t/import-is-very-slow/16238/3 "2021-12-20T06:47:36Z")

</div>

I just transferred by segments from one install to another hit this issuue. It was solved very well by upping the limit. I ended going with 3000 which was handled very well by Mautic. I’m running on a beefy system but it seemed to not even phase the CPU or memory.

mautic:import --limit=3000

---

<div class="post-metadata">

**Author:** ![ammofoodprep](https://avatars.discourse-cdn.com/v4/letter/a/848f3c/32.png) [@ammofoodprep](https://forum.mautic.org/u/ammofoodprep)\
**Post date:** [October 20, 2023, 1:51pm UTC](https://forum.mautic.org/t/import-is-very-slow/16238/4 "2023-10-20T13:51:24Z")

</div>

where did you put in this code?  
mautic:import --limit=3000

---

<div class="post-metadata">

**Author:** ![ammofoodprep](https://avatars.discourse-cdn.com/v4/letter/a/848f3c/32.png) [@ammofoodprep](https://forum.mautic.org/u/ammofoodprep)\
**Post date:** [October 20, 2023, 1:52pm UTC](https://forum.mautic.org/t/import-is-very-slow/16238/5 "2023-10-20T13:52:46Z")

</div>

may I ask how beefy your server is?

I have a 4 gb server at cloudways - running on digital ocean and can scale up of course - I am paying $54 a month for the instance of the managed VPS.

I need to import a list of 5.4 million. - 2.1 million emails only as the rest have phone numbers for SMS marketing ect

---

<div class="post-metadata">

**Author:** ![ammofoodprep](https://avatars.discourse-cdn.com/v4/letter/a/848f3c/32.png) [@ammofoodprep](https://forum.mautic.org/u/ammofoodprep)\
**Post date:** [October 20, 2023, 2:05pm UTC](https://forum.mautic.org/t/import-is-very-slow/16238/6 "2023-10-20T14:05:34Z")

</div>

![Screenshot 2023-10-20 at 9.05.03 AM](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/0/0e8d9e90f950dc898255aa35f08efd0611150dc3.png)  
 ![Screenshot 2023-10-20 at 9.06.31 AM](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/c/c4a32545dc08e56b8167b2105b6545f27d6ec073.png)

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [October 21, 2023, 2:20pm UTC](https://forum.mautic.org/t/import-is-very-slow/16238/7 "2023-10-21T14:20:19Z")

</div>

Hi,  
This is the Cronjobs you need to set up for Mautic.  
After installing Mautic make sure you have the email column indexed in leads table (Should be, but if not it can cause slow import.)  
If you don’t know how to do these things I recommend to read more the forums or get pro Mautic help.
