# Where to save persistent data in a published node

**URL:** https://discourse.nodered.org/t/where-to-save-persistent-data-in-a-published-node/59544
**Category:** Developing Nodes
**Created:** [8 March 2022 15:57 UTC](https://discourse.nodered.org/t/where-to-save-persistent-data-in-a-published-node/59544 "2022-03-08T15:57:38Z")
**Posts on this page:** 1
**Showing post:** 24

<div class="post-metadata">

### Author: ![berijan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/berijan/32/35313_2.png) [@berijan](https://discourse.nodered.org/u/berijan)
#### Post date: [13 March 2022 07:09 UTC](https://discourse.nodered.org/t/where-to-save-persistent-data-in-a-published-node/59544/24 "2022-03-13T07:09:05Z")

</div>

This may help you

> **[node-red-contrib-persist](https://flows.nodered.org/node/node-red-contrib-persist)**
>
> A node-red node to persist data between Node Red deploys and restarts.

> [@A guide to understanding 'Persistent Context'](https://discourse.nodered.org/t/a-guide-to-understanding-persistent-context/4115):
>
> This is something I wrote up after playing with the context options. I've filed a PR with some of this added to the Node-RED documentation but thought I'd release it here also. I hope people find it useful. Paul A guide to understanding 'Persistent Context' Prior to Node-RED v0.19.0, data could be stored in context as a global, flow or node. This was stored in memory and would be reset with a restart of Node-RED. As of v.0.19.0 you can now store node, flow and global context data in memory O…

[https://nodered.org/docs/user-guide/context](https://nodered.org/docs/user-guide/context)

---

_[View the full topic](https://discourse.nodered.org/t/where-to-save-persistent-data-in-a-published-node/59544)._
