# Dataset Tag value - add/delete

**URL:** <https://forum.inductiveautomation.com/t/dataset-tag-value-add-delete/93952>\
**Category:** Ignition\
**Tags:** perspective, scripting\
**Created:** [July 31, 2024, 6:46am UTC](https://forum.inductiveautomation.com/t/dataset-tag-value-add-delete/93952 "2024-07-31T06:46:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahul\_solanki](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@Rahul\_solanki](https://forum.inductiveautomation.com/u/Rahul_solanki)\
**Post date:** [July 31, 2024, 6:46am UTC](https://forum.inductiveautomation.com/t/dataset-tag-value-add-delete/93952/1 "2024-07-31T06:46:05Z")

</div>

I have a memory tag of datset as datatype.  
I want to add/delete rows from it.  
This operation will be performed by many users and there's possibility of performing this operation by many users at exact same time.  
What will be the best way to do it.

---

<div class="post-metadata">

**Author:** ![Hayden\_Watson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/hayden_watson/32/48792_2.png) [@Hayden\_Watson](https://forum.inductiveautomation.com/u/Hayden_Watson)\
**Post date:** [July 31, 2024, 7:17am UTC](https://forum.inductiveautomation.com/t/dataset-tag-value-add-delete/93952/2 "2024-07-31T07:17:04Z")

</div>

Is there a reason to use a dataset tag instead of a database table and use named queries? I would imagine for cases where multiple users are reading/writing this may be a safer method.

With a dataset tag I don't think you can just append or remove lines, you need to overwrite the whole thing with your changed dataset. So simultaneous writes may cause issues.

---

<div class="post-metadata">

**Author:** ![Rahul\_solanki](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@Rahul\_solanki](https://forum.inductiveautomation.com/u/Rahul_solanki)\
**Post date:** [July 31, 2024, 7:55am UTC](https://forum.inductiveautomation.com/t/dataset-tag-value-add-delete/93952/3 "2024-07-31T07:55:32Z")

</div>

I have many sessions consuming same data and then doing 'update' operation on it.  
If i have 100 sessions running then it will display the same data to all by running 100 queries, which I want to avoid doing it on front end.

I was also looking to get the data from backend but the only way I can see is through tags.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [July 31, 2024, 8:40am UTC](https://forum.inductiveautomation.com/t/dataset-tag-value-add-delete/93952/4 "2024-07-31T08:40:05Z")

</div>

You can "put data" in your library.  
If you need it to persist between gateway restarts, use the `system.util.globals` dictionary.  
Then make functions to add/remove things from your data structure (doesn't have to be a dataset, which data structure to use depends on your data and what you do with it), and call these functions from wherever you need to.
