# 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:** 11

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [8 March 2022 20:47 UTC](https://discourse.nodered.org/t/where-to-save-persistent-data-in-a-published-node/59544/11 "2022-03-08T20:47:12Z")

</div>

> [@tve](#):
>
> the data is the configuration of the dashboard

Hi @tve,  
Then I have misinterpreted this until now. Because in the original discussion you [wrote](https://discourse.nodered.org/t/alternative-of-current-ui-nodes-in-the-flexdash-dashboard/58768/26):

_You insert data into a data structure (a tree) on the Node-RED side. That is reflected to a tree in the front-end. A widget is then configured to look at specific nodes in that tree to get its values. The configuration itself is also in that tree_

So I thought that your tree contained 3 types of information:

1. The _ **static config** _, which is entered manually by the user in the fd nodes config screens and then deployed by clicking on the 'Deploy' button.

2. The _ **dynamic config** _, which is the static config that is overwritten by params via input messages.

3. The _ **data** _, i.e. the state of what you want to display.

I understood that this way you can avoid having to _replay_ messages, and you are still able to sync multiple clients even after a browser window refresh.

But now it is not clear to me anymore which of those 3 types of information are inside your tree, and which of those needs to be persisted? Your static config is already persisted in the flow.json file via the node properties.

And why do you want to persist that entire tree, while you static config is already persisted? To make sure that the dynamic config and the data survive a restart and redeploy?

Isn't that a problem when you make changes in the config screen, and deploy those changes? Because if your tree also contains the static and dynamic config, that might be obsolete and conflict with the new static config in the node?

Would be nice if you could explain this a bit, so I can follow again after a long hard day at work...  
Thanks!

---

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