reTHINK-project / dev-service-framework

DEPRECATED! Service framework libs have been moved to dev-runtime-core repo
Apache License 2.0
1 stars 2 forks source link

storage Manager for Runtime Node is blocking occasionally #78

Closed jboulmal closed 7 years ago

jboulmal commented 7 years ago

Hi, In Runtime Node we have parallel database connections from several and parallel node.js processes. Therefore, the database is in blocking states for concurrent read/write. Mainly here [StorageManager] - getVersion for key Thus, we need a way to handle exceptions during transactions. Especially, when the database is in blocking state. i.e: here

var db = new Dexie("MyDB");
db.on("blocked", function() {
    alert ("Database upgrading was blocked by another window/process. " );
   setTimeout("");
};
pchainho commented 7 years ago

it seems the usage of Dexie in nodejs is causing problems.

@dvilchez should we replace Dexie by something else like PouchDB

We should give priority to this one

jboulmal commented 7 years ago

Solved here 70f3d2ceeb3cf3a712c5a678e503692168443394