test connecting to Dat distributed json
eklem opened this issue · comments
Using a browser as a server fir JSON data for the search engine will make it persistent enough, even if re-indexing each time?
May need to have some JSON on the setup of the search engine. Like filters, ngrams, etc.
from https://gitter.im/datproject/discusson :
With the new SDK. Is it possible to only read to memory w/ persist: false ?
rangermauve @eklem Sadly the way the modules are strucutred under the hood there's no easy way to do that. It's either having everything in memory, or everything persisted.
@RangerMauve Maybe I asked a bit strange. So I can have it (everything) only in memory. Does that need to be both on create-side and client-side? Not sure about the terminology here, but by client, meaning non-creator side
rangermauve @eklem Yeah! You can just set persist false on whatever side you want it to be in memory. So in the non-creator you can have Hyperdrive(url, {persist: false}) and that'll do the trick.