# Local context storage not intended for large data arrays?

**URL:** <https://discourse.nodered.org/t/local-context-storage-not-intended-for-large-data-arrays/53377>\
**Category:** General\
**Created:** [8 November 2021 13:38 UTC](https://discourse.nodered.org/t/local-context-storage-not-intended-for-large-data-arrays/53377 "2021-11-08T13:38:25Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![metter](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@metter](https://discourse.nodered.org/u/metter)\
**Post date:** [8 November 2021 16:02 UTC](https://discourse.nodered.org/t/local-context-storage-not-intended-for-large-data-arrays/53377/18 "2021-11-08T16:02:03Z")

</div>

I just found this post:  
[https://discourse.nodered.org/t/persistent-context-storage/37858/2](https://discourse.nodered.org/t/error-circular-where-is-this-coming-from/7114)

by setting

```auto
contextStorage: {
        default: {
        module: 'memory'
        },
        disk: {
           module: 'localfilesystem', config: {flushInterval: '600'},
          },
     },

```

I can keep it all in memory, but flush to disk at the end of every cycle with:

```auto
flow.set("my_object", content, "disk")

```

That will do the trick

---

_[View the full topic](https://discourse.nodered.org/t/local-context-storage-not-intended-for-large-data-arrays/53377)._
