DB issue
chancethecoder opened this issue · comments
realm: 아직 공식적으로 electron을 지원하지 않음
dexie/indexedDB: Browser에는 적합하나 Node.js에서 사용불가하기 때문에 메인 프로세스에서 사용 불가
dexie/Dexie.js#142
pouchDB: node adapter를 통해 LevelDB 사용 가능하나 electron-rebuild를 거쳐야 하는 것으로 보임
https://github.com/nolanlawson/hello-electron-with-pouchdb
https://github.com/electron/electron-rebuild
Pad instance의 id를 unique하게 할당하기 위한 방법
-
db.post() 사용. 그러나 퍼포먼스 문제가 있음
https://pouchdb.com/2014/06/17/12-pro-tips-for-better-code-with-pouchdb.html -
secondary index (확인 해보는중)
https://pouchdb.com/2014/05/01/secondary-indexes-have-landed-in-pouchdb.html
DB Locking issus
오프라인과 온라인 다 지원하려면 아래 모듈로 리팩토링하는 것이 좋을듯