You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The leveldb folder is created and the data is in there but I still get the warning:
"WARNING! This file.js module for gun is intended for local development testing only!"
And the data is also in a data.json that gets put in my module root. This may be a gun issue or some configuration I am missing?
Sorry in advance if I am missing anything basic here.
The text was updated successfully, but these errors were encountered:
duh, went back to the docs, to prevent gun from persisting to a json file when you already have level-up persistence, do this:
constlevelDB=levelup(encode(leveldown(this.opts.file),{valueEncoding: 'json'}));//both radisk and localStorage must be set to falsethis.db=newGun({level: levelDB,radisk:false,localStorage:false,web: this.httpServer});
oddly both radisk and localStorage must be false, otherwise I get other errors like:
BUG WARNING: Radix Storage Engine (RSE) has a known rare edge case, if data gets split between file chunks, a GET may only return the first chunk!!!
You guys are welcome to close this, but I suggest we update the README with an explanation so others wont be persisting data to level and the standard json file at the same time.
I am doing what was specified in readme, snippet:
The leveldb folder is created and the data is in there but I still get the warning:
"WARNING! This
file.js
module for gun is intended for local development testing only!"And the data is also in a data.json that gets put in my module root. This may be a gun issue or some configuration I am missing?
Sorry in advance if I am missing anything basic here.
The text was updated successfully, but these errors were encountered: