# Read and writing data temporarily

**URL:** https://discourse.nodered.org/t/read-and-writing-data-temporarily/89963
**Category:** General
**Created:** [2 August 2024 19:01 UTC](https://discourse.nodered.org/t/read-and-writing-data-temporarily/89963 "2024-08-02T19:01:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![gallionjason](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gallionjason/32/81511_2.png) [@gallionjason](https://discourse.nodered.org/u/gallionjason)
#### Post date: [2 August 2024 19:01 UTC](https://discourse.nodered.org/t/read-and-writing-data-temporarily/89963/1 "2024-08-02T19:01:33Z")

</div>

Hello, is there a way to write/read data temporarily? I would like to test a flow and get average values over time but I do not need to store or keep the data. Would it be possible to use sqlite node and set the database name to memory?  
**Note** : Setting the database name to `:memory:` will create a non-persistant in memory database.  
Thank you for any suggestions!

---

<div class="post-metadata">

### Author: ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)
#### Post date: [2 August 2024 19:07 UTC](https://discourse.nodered.org/t/read-and-writing-data-temporarily/89963/2 "2024-08-02T19:07:08Z")

</div>

Have a look at [Working with context : Node-RED](https://nodered.org/docs/user-guide/context)  
Node-red provde a context store that can be file or memory

---

<div class="post-metadata">

### Author: ![gallionjason](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gallionjason/32/81511_2.png) [@gallionjason](https://discourse.nodered.org/u/gallionjason)
#### Post date: [2 August 2024 19:27 UTC](https://discourse.nodered.org/t/read-and-writing-data-temporarily/89963/3 "2024-08-02T19:27:53Z")

</div>

Thank you!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [31 October 2024 19:28 UTC](https://discourse.nodered.org/t/read-and-writing-data-temporarily/89963/4 "2024-10-31T19:28:26Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
