# Import Script High Memory Usage

**URL:** <https://meta.discourse.org/t/import-script-high-memory-usage/153471>\
**Category:** Product Support\
**Created:** [June 1, 2020, 2:04pm UTC](https://meta.discourse.org/t/import-script-high-memory-usage/153471 "2020-06-01T14:04:30Z")\
**Posts on this page:** 1\
**Showing post:** 8

<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:** [June 1, 2020, 11:26pm UTC](https://meta.discourse.org/t/import-script-high-memory-usage/153471/8 "2020-06-01T23:26:54Z")

</div>

> [@Ghan](#):
>
> Would each process only be maintaining the map for the posts it has imported?

I think so. And the others won’t work correctly because they don’t have those days that were imported by other processes. I don’t think that what you’re doing will work.

You’ll need to either look at the bulk import scripts or rewrite base.rb to keep up with links to the import ids some other way.

The likelihood that you’ll spend more weeks debugging your code than just waiting is high. Single process cpu speed is your best way to speed things up.

---

_[View the full topic](https://meta.discourse.org/t/import-script-high-memory-usage/153471)._
