From 35dfc2a2d7eb3b6480be8a770e620d3e04559a40 Mon Sep 17 00:00:00 2001 From: Stanislav Rassokhin Date: Fri, 30 Jul 2021 23:11:33 +0300 Subject: [PATCH] CE-1066 Add database index for soundscape composition classes annotations table --- CHANGELOG.md | 1 + TEST_NOTES.md | 2 ++ scripts/db/020-add-scc-annotations-index.sql | 1 + 3 files changed, 4 insertions(+) create mode 100644 scripts/db/020-add-scc-annotations-index.sql diff --git a/CHANGELOG.md b/CHANGELOG.md index ffc9c5b58..de752ac7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ Performance improvements: - CE-1067 Speed up recordings queries which search by selected sites on Recordings and Visualizer pages - CE-1070 Speed up recordings total count endpoint - CE-1063 Delete project stats bar from Summary page +- CE-1066 Add database index for soundscape composition classes annotations table ## v3.0.32 - June 26, 2021 diff --git a/TEST_NOTES.md b/TEST_NOTES.md index b861cc73e..3312b29a3 100644 --- a/TEST_NOTES.md +++ b/TEST_NOTES.md @@ -23,6 +23,8 @@ Test Notes are used to list what pages / components / features / user flows are - Check that total recordings count is still correctly calculated on Project summary page - CE-1063 Delete project stats bar from Summary page - Check that summary page still works correctly +- CE-1066 Add database index for soundscape composition classes annotations table + - Check that Data -> Soundscape composition classes page works relatively fast ## v3.0.32 diff --git a/scripts/db/020-add-scc-annotations-index.sql b/scripts/db/020-add-scc-annotations-index.sql new file mode 100644 index 000000000..b7cbf3fd2 --- /dev/null +++ b/scripts/db/020-add-scc-annotations-index.sql @@ -0,0 +1 @@ +CREATE INDEX class_recording ON recording_soundscape_composition_annotations (scclassId, recordingId);