Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: key value store module for pending storage and operation id cache #3113

Open
wants to merge 8 commits into
base: v6/develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ dist
test-data*

# Data folders
data*
/data*

# VS code files
.vscode/launch.json
Expand Down
50 changes: 50 additions & 0 deletions config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,16 @@
}
}
},
"keyValueStore": {
"enabled": true,
"implementation": {
"lmdb": {
"enabled": true,
"package": "./key-value-store/implementation/lmdb-service.js",
"config": {}
}
}
},
"tripleStore": {
"enabled": true,
"implementation": {
Expand Down Expand Up @@ -281,6 +291,16 @@
}
}
},
"keyValueStore": {
"enabled": true,
"implementation": {
"lmdb": {
"enabled": true,
"package": "./key-value-store/implementation/lmdb-service.js",
"config": {}
}
}
},
"tripleStore": {
"enabled": true,
"implementation": {
Expand Down Expand Up @@ -437,6 +457,16 @@
}
}
},
"keyValueStore": {
"enabled": true,
"implementation": {
"lmdb": {
"enabled": true,
"package": "./key-value-store/implementation/lmdb-service.js",
"config": {}
}
}
},
"tripleStore": {
"enabled": true,
"implementation": {
Expand Down Expand Up @@ -603,6 +633,16 @@
}
}
},
"keyValueStore": {
"enabled": true,
"implementation": {
"lmdb": {
"enabled": true,
"package": "./key-value-store/implementation/lmdb-service.js",
"config": {}
}
}
},
"tripleStore": {
"enabled": true,
"implementation": {
Expand Down Expand Up @@ -759,6 +799,16 @@
}
}
},
"keyValueStore": {
"enabled": true,
"implementation": {
"lmdb": {
"enabled": true,
"package": "./key-value-store/implementation/lmdb-service.js",
"config": {}
}
}
},
"tripleStore": {
"enabled": true,
"implementation": {
Expand Down
12 changes: 12 additions & 0 deletions ot-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,18 @@ class OTNode {

await this.initializeModules();

await MigrationExecutor.executeOperationIdStorageMigration(
this.container,
this.logger,
this.config,
);

await MigrationExecutor.executePendingStorageMigration(
this.container,
this.logger,
this.config,
);

await MigrationExecutor.executeRemoveServiceAgreementsForChiadoMigration(
this.container,
this.logger,
Expand Down
Loading
Loading