# Slow Scripting and Querying in 8.1

**URL:** <https://forum.inductiveautomation.com/t/slow-scripting-and-querying-in-8-1/39594>\
**Category:** Ignition Early Access\
**Created:** [October 12, 2020, 2:54pm UTC](https://forum.inductiveautomation.com/t/slow-scripting-and-querying-in-8-1/39594 "2020-10-12T14:54:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyle.demerath](https://avatars.discourse-cdn.com/v4/letter/k/5e9695/32.png) [@kyle.demerath](https://forum.inductiveautomation.com/u/kyle.demerath)\
**Post date:** [October 12, 2020, 2:54pm UTC](https://forum.inductiveautomation.com/t/slow-scripting-and-querying-in-8-1/39594/1 "2020-10-12T14:54:09Z")

</div>

Has anyone else noticed that scripts, perhaps especially ones that query alarms or other databases from named queries are significantly slower in 8.1 (currently on RC1). It may also be using a lot of CPU and memory on the gateway. We didn’t have these issues on 8.0.xx as far as we could tell

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [October 12, 2020, 7:57pm UTC](https://forum.inductiveautomation.com/t/slow-scripting-and-querying-in-8-1/39594/2 "2020-10-12T19:57:20Z")

</div>

I can’t think of any changes we made for named queries in 8.1

---

<div class="post-metadata">

**Author:** ![kyle.demerath](https://avatars.discourse-cdn.com/v4/letter/k/5e9695/32.png) [@kyle.demerath](https://forum.inductiveautomation.com/u/kyle.demerath)\
**Post date:** [October 12, 2020, 8:00pm UTC](https://forum.inductiveautomation.com/t/slow-scripting-and-querying-in-8-1/39594/3 "2020-10-12T20:00:47Z")

</div>

what about querying the alarm journal?

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [October 13, 2020, 2:38pm UTC](https://forum.inductiveautomation.com/t/slow-scripting-and-querying-in-8-1/39594/4 "2020-10-13T14:38:05Z")

</div>

I don’t know of any for that, either.

Named queries and querying the alarm journal use two completely different code paths, so I’m having a hard time trying to think of anything in Ignition that would slow both of those things down.

---

<div class="post-metadata">

**Author:** ![kyle.demerath](https://avatars.discourse-cdn.com/v4/letter/k/5e9695/32.png) [@kyle.demerath](https://forum.inductiveautomation.com/u/kyle.demerath)\
**Post date:** [October 13, 2020, 8:45pm UTC](https://forum.inductiveautomation.com/t/slow-scripting-and-querying-in-8-1/39594/5 "2020-10-13T20:45:03Z")

</div>

Thank you. I did some more digging and its system.tag.getConfiguration() that is slowing things down a lot. I’m not sure it’s any worse in 8.1 than an older version since we made some changes ourselves, but running that in a for loop for a large list of tags takes up some time. I did parameterize it as False to avoid recursion as well.
