# Update one object in Global Context array

**URL:** <https://discourse.nodered.org/t/update-one-object-in-global-context-array/36790>\
**Category:** General\
**Created:** [1 December 2020 08:59 UTC](https://discourse.nodered.org/t/update-one-object-in-global-context-array/36790 "2020-12-01T08:59:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [1 December 2020 09:03 UTC](https://discourse.nodered.org/t/update-one-object-in-global-context-array/36790/2 "2020-12-01T09:03:50Z")

</div>

> [@cllp](#):
>
> I don´t think this way is really optimised for performance

Why don't you think this is optimised? In fact this is likely the fastest possible method. When you call `global.set` you are only storing the reference (not the whole array).

See [this](https://discourse.nodered.org/t/working-with-local-storage-for-context-flow-and-global-variables/36320/4) recent post

---

_[View the full topic](https://discourse.nodered.org/t/update-one-object-in-global-context-array/36790)._
