# Ignition 8.1 Slow Executing Scripts

**URL:** <https://forum.inductiveautomation.com/t/ignition-8-1-slow-executing-scripts/97971>\
**Category:** Ignition\
**Tags:** ignition81, scripting\
**Created:** [October 30, 2024, 7:44pm UTC](https://forum.inductiveautomation.com/t/ignition-8-1-slow-executing-scripts/97971 "2024-10-30T19:44:11Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 30, 2024, 7:55pm UTC](https://forum.inductiveautomation.com/t/ignition-8-1-slow-executing-scripts/97971/5 "2024-10-30T19:55:45Z")

</div>

Tag events run in a limited thread pool (three threads, by default). You must not do anything in a tag event script that takes more than a handful of milliseconds. (Like, single digit milliseconds.)

This means your tag events must not:

- Make any database calls, except Insert/Update via the Store and Forward system.

- Make any direct OPC reads, or any OPC tag writes, or direct OPC writes, as these block for many seconds if there are communication problems.

- Use any system or java functions that will block on any other network activity.

- Use any system or java functions that access large amounts of data in a filesystem.

- Use any form of `.sleep()` or any form of busy-looping.

If you need any of the above, use a project-level Gateway Tag Change event (or multiple such) instead of event scripts attached directly to the tag.

---

_[View the full topic](https://forum.inductiveautomation.com/t/ignition-8-1-slow-executing-scripts/97971)._
