# Tag Historian Insert Data into Tag with Timestamp

**URL:** <https://forum.inductiveautomation.com/t/tag-historian-insert-data-into-tag-with-timestamp/65474>\
**Category:** Ignition\
**Tags:** ignition81, database\
**Created:** [October 20, 2022, 5:00pm UTC](https://forum.inductiveautomation.com/t/tag-historian-insert-data-into-tag-with-timestamp/65474 "2022-10-20T17:00:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Drew.Gatti](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drew.gatti/32/39854_2.png) [@Drew.Gatti](https://forum.inductiveautomation.com/u/Drew.Gatti)\
**Post date:** [October 20, 2022, 5:00pm UTC](https://forum.inductiveautomation.com/t/tag-historian-insert-data-into-tag-with-timestamp/65474/1 "2022-10-20T17:00:56Z")

</div>

Hey Everyone,

With IG AB driver, I can not grab data reliably faster than 250ms. To combat this we store the needed data in an array at a faster rate and a script goes though an array and inserts the data into a table to rebuild the tag data. However, my company has decided to move to Ignition Edge for this project with tag-historian and I no longer have access to a DB.

Does anyone know how to insert data into a tag-historian tag with a timestamp attached to it?

Thank you,  
DG

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [October 20, 2022, 5:09pm UTC](https://forum.inductiveautomation.com/t/tag-historian-insert-data-into-tag-with-timestamp/65474/2 "2022-10-20T17:09:09Z")

</div>

The only way to manually insert values into Tag History is to use `system.tag.storeTagHistory()`.  
[https://docs.inductiveautomation.com/display/DOC81/system.tag.storeTagHistory](https://docs.inductiveautomation.com/display/DOC81/system.tag.storeTagHistory)

Note that, on Edge that means you will need the Compute module (I believe).

Of course if you have a Standard Gateway somewhere else with access to this data, then you can always do it there.

---

<div class="post-metadata">

**Author:** ![Drew.Gatti](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drew.gatti/32/39854_2.png) [@Drew.Gatti](https://forum.inductiveautomation.com/u/Drew.Gatti)\
**Post date:** [October 20, 2022, 9:00pm UTC](https://forum.inductiveautomation.com/t/tag-historian-insert-data-into-tag-with-timestamp/65474/3 "2022-10-20T21:00:51Z")

</div>

Don't know how I missed that call in the manual. This is exactly what I needed.

Awesome! thank you.
