# 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:** 9

<div class="post-metadata">

**Author:** ![Ghan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ghan/32/177964_2.png) [@Ghan](https://meta.discourse.org/u/Ghan)\
**Post date:** [June 2, 2020, 12:28am UTC](https://meta.discourse.org/t/import-script-high-memory-usage/153471/9 "2020-06-02T00:28:04Z")

</div>

I haven’t seen any issues with this approach so far, though I could see some issues happening with some of the methods that happen after the post import. I’ll probably want to make sure everything stops after that and then run a single-threaded execution to make sure the rest is handled cleanly.

That said, your suggestion to handle the import ID links differently is probably good in any case. Holding an arbitrarily large amount of data in some variables for the duration of the script isn’t very efficient.

---

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