# Lot of sidekiq jobs during data import

**URL:** <https://meta.discourse.org/t/lot-of-sidekiq-jobs-during-data-import/53358>\
**Category:** Product Support\
**Created:** [November 25, 2016, 7:25am UTC](https://meta.discourse.org/t/lot-of-sidekiq-jobs-during-data-import/53358 "2016-11-25T07:25:26Z")\
**Posts on this page:** 4\
**Page:** 1

## AI-generated summary

[junaid_pk14](/t/-/53358/1) inquired about handling a large data import (700k users, 5 million posts) on a live Discourse system, specifically regarding the creation of over 5 million Sidekiq jobs. They sought advice from @neil and @Falco on whether to keep Sidekiq running during the import to avoid impacting other functionalities, noting that outgoing emails are disabled by default.

[pfaffman](/t/-/53358/2) advised that it is generally better to turn off Sidekiq during the import process to improve speed. They explained that Sidekiq performs necessary post-processing tasks, such as rebaking all 5 million posts, which can take a considerable amount of time. The user can monitor this progress by visiting the Sidekiq dashboard as an admin. This recommendation references earlier guidance from [gerhard](/t/-/53358/2) regarding the post-import processing phase.

<div class="post-metadata">

**Author:** ![junaid\_pk14](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/junaid_pk14/32/67840_2.png) [@junaid\_pk14](https://meta.discourse.org/u/junaid_pk14)\
**Post date:** [November 25, 2016, 7:25am UTC](https://meta.discourse.org/t/lot-of-sidekiq-jobs-during-data-import/53358/1 "2016-11-25T07:25:26Z")

</div>

Hello Guys,

We have a huge dataset(7 Lac user, 2.5 Lac threads, 5 million posts, 1.5 attachments, During import discourse created huge amount(5357085) of sidekiq jobs. It seems that we should keep running sidekiq during import time otherwise it would effect other functionalities. During import Discourse by default disable the outgoing email. I want to make sure again as we are going to import data for live system and don’t want to have suprises.

@neil, @Falco What do you suggests? Thanks

Regards,  
Junaid

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [November 25, 2016, 5:27pm UTC](https://meta.discourse.org/t/lot-of-sidekiq-jobs-during-data-import/53358/2 "2016-11-25T17:27:03Z")

</div>

Generally you should turn off Sidekiq during import (it’ll be faster) and then turn it on when it’s done. It’ll do things like rebake every post (all 5 million of them), so it’ll take a while.

> [@Migrate a phpBB3 forum to Discourse](https://meta.discourse.org/t/migrate-a-phpbb3-forum-to-discourse/30810/1):
>
> Discourse will start and Sidekiq will begin post-processing all the imported posts. This can take a considerate amount of time. You can watch the progress by logging in as admin and visiting [http://discourse.example.com/sidekiq](http://discourse.example.com/sidekiq)

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [April 1, 2019, 11:58pm UTC](https://meta.discourse.org/t/lot-of-sidekiq-jobs-during-data-import/53358/3 "2019-04-01T23:58:03Z")

</div>

Automatically bumped on April 1, 2019, 11:58pm UTC



---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [April 2, 2019, 12:24am UTC](https://meta.discourse.org/t/lot-of-sidekiq-jobs-during-data-import/53358/4 "2019-04-02T00:24:48Z")

</div>

Closed on April 2, 2019, 12:24am UTC


