Current db setup

https://github.com/Ivshti/linvodb3arrow-up-right

has option to use

NW.js/Electron friendly - JS-only backend is level-js or Medea

initially tried level-jsarrow-up-right

level.js an implementation of the leveldownarrow-up-right API on top of IndexedDBarrow-up-right (which is in turn implemented on top of LevelDBarrow-up-right, which brings this whole shebang full circle)

LevelDOWN was extracted from LevelUParrow-up-right and now serves as a stand-alone binding for LevelDB.

However indexDb has a 50mb total file size restriction. This might seem ok at first, but some transcriptions can reach 5mb in size in their json representation. So this would not scale if you add n number of transcription.

Decided to move to medea instead.

the way to set up medea is to use medeadownarrow-up-right. as described in this issuearrow-up-right

medeadown is a leveldownarrow-up-right-compatible interface to medeaarrow-up-right

this required installing medeadown separatly

npm install medeadown -save

and changing the LinvoDB data store to it.

LinvoDB.defaults.store = { db: require("medeadown") };

as well as setting up the dbPath

LinvoDB.dbPath = window.config.dataPath;

In this case using App.dataPatharrow-up-right require('nw.gui').App.dataPath eg "/Users/pietropassarelli/Library/Application Support/autoEdit2"

and the db would be stored in the folder

Last updated