# web-API to read/write tags json

**URL:** <https://forum.inductiveautomation.com/t/web-api-to-read-write-tags-json/19038>\
**Category:** Ignition\
**Created:** [July 31, 2018, 10:04pm UTC](https://forum.inductiveautomation.com/t/web-api-to-read-write-tags-json/19038 "2018-07-31T22:04:32Z")\
**Posts on this page:** 7\
**Page:** 3

<div class="post-metadata">

**Author:** ![R.Alamsha](https://avatars.discourse-cdn.com/v4/letter/r/e5b9ba/32.png) [@R.Alamsha](https://forum.inductiveautomation.com/u/R.Alamsha)\
**Post date:** [August 19, 2018, 11:53am UTC](https://forum.inductiveautomation.com/t/web-api-to-read-write-tags-json/19038/42 "2018-08-19T11:53:01Z")

</div>

> [@PRAMANJ](#):
>
> However the increase in cycle time may not be in same proportion (i.e. 2.5 to 3 times, it may increase from 20 to 30 milliseconds max. (Actually 20 ms is on higher side, on average it takes about 15 milliseconds.)

Awesome. I would like to check the GCM-JSON version. Now, i agree that you have every reason to be passionate about your product. Release the evaluation copy asap.

---

<div class="post-metadata">

**Author:** ![PRAMANJ](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pramanj/32/66935_2.png) [@PRAMANJ](https://forum.inductiveautomation.com/u/PRAMANJ)\
**Post date:** [August 19, 2018, 1:06pm UTC](https://forum.inductiveautomation.com/t/web-api-to-read-write-tags-json/19038/43 "2018-08-19T13:06:51Z")

</div>

In fact the local version (NJSCADA on same server as Ignition, but of course its clients ARSCADA, RMSCADA can be anywhere on LAN and PubNub, provided you have Internet connection on Ignition machine) is already ready, but I am working on the LAN version (i.e. NJSCADA on a separate server than Ignition on a LAN). If you want I can send the local version first for evaluation in couple of days. I have to do some documentation and update the documentation. However I thought let me complete the LAN version and send, as it would work in both LAN and Network mode.

---

<div class="post-metadata">

**Author:** ![R.Alamsha](https://avatars.discourse-cdn.com/v4/letter/r/e5b9ba/32.png) [@R.Alamsha](https://forum.inductiveautomation.com/u/R.Alamsha)\
**Post date:** [August 19, 2018, 4:18pm UTC](https://forum.inductiveautomation.com/t/web-api-to-read-write-tags-json/19038/44 "2018-08-19T16:18:30Z")

</div>

> [@PRAMANJ](#):
>
> In my opinion its too slow!

**Performance of TG group on MySQL --- 5000 tags.**

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/9/9e2e2a5e42dfd7281fda3dda2cb38df366a8916d.png)

**Performance of TG group on H2-IMDB --- 5000 tags.**

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/b95f15da3b04de8fdf55badd6180cc5a19611576.png)

On "H2-IMDB", for 5000 tags it takes less than 300 msec. Almost 10 times faster than MySQL disk i/o db.

---

<div class="post-metadata">

**Author:** ![PRAMANJ](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pramanj/32/66935_2.png) [@PRAMANJ](https://forum.inductiveautomation.com/u/PRAMANJ)\
**Post date:** [August 19, 2018, 5:00pm UTC](https://forum.inductiveautomation.com/t/web-api-to-read-write-tags-json/19038/45 "2018-08-19T17:00:42Z")

</div>

In memory is obviously understandable (about 300 ms average), but will require huge memory I guess. But not sure if my interpretations is correct:

1. Do you have only group1 with 5000 tags being written every 1 second?
2. What are these tag types (float or int or string ...?).

In my case I am extracting 5 mata data (like type, access, format, units and definition) about each tag from database and send to NJSCADA in the first cycle , but subsequent cycles I send only values. This is required for my application. It first sort of copies the tags data base from Ignition to NJSCADA for specified tags in first cycle then only values are updated.

---

<div class="post-metadata">

**Author:** ![R.Alamsha](https://avatars.discourse-cdn.com/v4/letter/r/e5b9ba/32.png) [@R.Alamsha](https://forum.inductiveautomation.com/u/R.Alamsha)\
**Post date:** [August 19, 2018, 5:18pm UTC](https://forum.inductiveautomation.com/t/web-api-to-read-write-tags-json/19038/46 "2018-08-19T17:18:35Z")

</div>

> [@PRAMANJ](#):
>
> In memory is obviously understandable (about 300 ms average), but will require huge memory I guess.

Not much. I didn't see any significant increase in RAM usage when i enable H2-IMDB. Nevertheless, performance is directly proportional to the RAM when you deal with any IM application.

> [@PRAMANJ](#):
>
> Do you have only group1 with 5000 tags being written every 1 second?

I have configured many groups but i have enabled only group1.

> [@PRAMANJ](#):
>
> What are these tag types (float or int or string ...?).

All are floats. This is a sample JSON.

> {"group1\_ndx": 4998, "Tag\_5000": 0.7661028504371643, "t\_stamp": "2018-08-13 16:10:46"}, {"group1\_ndx": 4999, "Tag\_5000": 0.029909193515777588, "t\_stamp": "2018-08-13 16:10:46"}, {"group1\_ndx": 5000, "Tag\_5000": 0.732514500617981, "t\_stamp": "2018-08-13 16:10:46"}, {"group1\_ndx": 5001, "Tag\_5000": 0.8658828139305115, "t\_stamp": "2018-08-13 16:10:46"}

---

<div class="post-metadata">

**Author:** ![PRAMANJ](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pramanj/32/66935_2.png) [@PRAMANJ](https://forum.inductiveautomation.com/u/PRAMANJ)\
**Post date:** [August 20, 2018, 3:28am UTC](https://forum.inductiveautomation.com/t/web-api-to-read-write-tags-json/19038/47 "2018-08-20T03:28:33Z")

</div>

my JSON sends only names and values , time stamp and group name is redundant in my opinion, as they are same for each json packet!

---

<div class="post-metadata">

**Author:** ![jondel2019](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@jondel2019](https://forum.inductiveautomation.com/u/jondel2019)\
**Post date:** [May 31, 2019, 10:43am UTC](https://forum.inductiveautomation.com/t/web-api-to-read-write-tags-json/19038/48 "2019-05-31T10:43:27Z")

</div>

Thanks for the tutorial like answer…

[Previous page](https://forum.inductiveautomation.com/t/web-api-to-read-write-tags-json/19038.md?page=2)
