node-red-contrib-aedes icon indicating copy to clipboard operation
node-red-contrib-aedes copied to clipboard

support aedes-persistence-level

Open twocolors opened this issue 3 years ago • 15 comments

please add support aedes-persistence-level to save data in local storage

twocolors avatar Mar 09 '21 09:03 twocolors

Currently persistence between Node-RED restarts is only supported for MongoDB. Aedes provides a few more storage options. NeDB might be an option if persistence without an external database is required. Let me check this.

Martin

martin-doyle avatar Mar 14 '21 09:03 martin-doyle

There is a new branch NeDB. Would you mind testing it?

Martin

martin-doyle avatar Mar 14 '21 16:03 martin-doyle

Unfortunately, the stability test for the NeDB persistence failed. This needs more investigation.

martin-doyle avatar Mar 17 '21 18:03 martin-doyle

any ideas how to implement this?

twocolors avatar Jun 16 '22 03:06 twocolors

To be honest I did not test it since then. Did you try the NeDB branch?

martin-doyle avatar Jun 17 '22 17:06 martin-doyle

for my work find, but i recommended use LevelDB . aedes-persistence-nedb now not support

twocolors avatar Dec 16 '22 20:12 twocolors

OK. I will check it. It is supported by aedes now.

martin-doyle avatar Dec 16 '22 22:12 martin-doyle

The latest version 0.11 supports LevelDB. It is not published yet to npm. Are you willing to test it from Github?

martin-doyle avatar Mar 12 '23 18:03 martin-doyle

yup

twocolors avatar Mar 12 '23 19:03 twocolors

I was not sure if you need a npm package. So I published today version 0.11.0 with LevelDB persistence.

martin-doyle avatar Mar 13 '23 16:03 martin-doyle

i see you remove support, i can test from git ... mb set path for db like https://github.com/NRCHKB/node-red-contrib-homekit-bridged/blob/b52945d671ad5ea286361e1f26095075785882cd/src/nodes/nrchkb.ts#L43

twocolors avatar Mar 14 '23 14:03 twocolors

@martin-doyle hi, have you any idea ?

twocolors avatar Sep 20 '23 13:09 twocolors

I tested LevelDB and it caused a Node-RED crash on ARM64 in a docker container. So, I do not want to deploy this in the main branch.

martin-doyle avatar Oct 05 '23 20:10 martin-doyle

try aedes-persistence-nedb ?

twocolors avatar Oct 12 '23 00:10 twocolors