From aa4cfb82860d0f9aae7b9f022d9474ee88fa7349 Mon Sep 17 00:00:00 2001 From: mtraneis Date: Thu, 4 Feb 2021 19:12:46 -0500 Subject: [PATCH 1/2] added new b-tree indexes on patron_action_session table --- .../resources/templates/db_scripts/schema.json | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/main/resources/templates/db_scripts/schema.json b/src/main/resources/templates/db_scripts/schema.json index a9b7368ac..b1721d46a 100644 --- a/src/main/resources/templates/db_scripts/schema.json +++ b/src/main/resources/templates/db_scripts/schema.json @@ -318,7 +318,21 @@ { "tableName": "patron_action_session", "withMetadata": true, - "withAuditing": false + "withAuditing": false, + "index": [ + { + "fieldName": "patronId", + "tOps": "ADD", + "caseSensitive": false, + "removeAccents": false + }, + { + "fieldName": "actionType", + "tOps": "ADD", + "caseSensitive": false, + "removeAccents": false + } + ] }, { "tableName": "check_in", From 2ad715aa90f09159400cfb4cab57aff71e13c446 Mon Sep 17 00:00:00 2001 From: mtraneis Date: Fri, 19 Feb 2021 08:53:03 -0500 Subject: [PATCH 2/2] removed the actionType index because it does not make sense --- src/main/resources/templates/db_scripts/schema.json | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main/resources/templates/db_scripts/schema.json b/src/main/resources/templates/db_scripts/schema.json index b1721d46a..39a4e2a54 100644 --- a/src/main/resources/templates/db_scripts/schema.json +++ b/src/main/resources/templates/db_scripts/schema.json @@ -325,12 +325,6 @@ "tOps": "ADD", "caseSensitive": false, "removeAccents": false - }, - { - "fieldName": "actionType", - "tOps": "ADD", - "caseSensitive": false, - "removeAccents": false } ] },