Skip to content

Commit cd24bcb

Browse files
committed
fine tune indexes a little more
1 parent 7ef6849 commit cd24bcb

4 files changed

Lines changed: 17 additions & 3 deletions

File tree

OpenFlow/src/DatabaseConnection.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2044,6 +2044,20 @@ export class DatabaseConnection {
20442044
await this.createIndex(collection.name, "queue_1", { "queue": 1 }, null, span)
20452045
}
20462046
break;
2047+
case "openrpa_instances":
2048+
if (indexnames.indexOf("_created_1") == -1) {
2049+
await this.createIndex(collection.name, "_created_1", { "_created": 1 }, null, span)
2050+
}
2051+
if (indexnames.indexOf("WorkflowId_1") == -1) {
2052+
await this.createIndex(collection.name, "WorkflowId_1", { "WorkflowId": 1 }, null, span)
2053+
}
2054+
if (indexnames.indexOf("state_1") == -1) {
2055+
await this.createIndex(collection.name, "state_1", { "state": 1 }, null, span)
2056+
}
2057+
if (indexnames.indexOf("fqdn_1") == -1) {
2058+
await this.createIndex(collection.name, "fqdn_1", { "fqdn": 1 }, null, span)
2059+
}
2060+
break;
20472061
case "audit":
20482062
if (indexnames.indexOf("_type_1") == -1) {
20492063
await this.createIndex(collection.name, "_type_1", { "_type": 1 }, null, span)

OpenFlowNodeRED/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openiap/nodered",
3-
"version": "1.2.59",
3+
"version": "1.2.60",
44
"description": "Simple wrapper around NodeRed, RabbitMQ and MongoDB to support a more scaleable NodeRed implementation.\r Also the \"backend\" for [OpenRPA](https://github.com/skadefro/OpenRPA)",
55
"main": "index.js",
66
"scripts": {

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.59
1+
1.2.60

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openiap/openflow",
3-
"version": "1.2.59",
3+
"version": "1.2.60",
44
"description": "Simple wrapper around NodeRed, RabbitMQ and MongoDB to support a more scaleable NodeRed implementation.\r Also the \"backend\" for [OpenRPA](https://github.com/skadefro/OpenRPA)",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)