# HG changeset patch # User Alain Mazy # Date 1763629519 -3600 # Node ID 2bf85a1e2b8567fb317357a69e0d716e9be4b605 # Parent b0251a5ab8ab127cc7c5a7c8c886ddb4b9302132 SQLite: remove 2 unused indexes when upgrading diff -r b0251a5ab8ab -r 2bf85a1e2b85 OrthancServer/Sources/Database/InstallDicomIdentifiersIndex3.sql --- a/OrthancServer/Sources/Database/InstallDicomIdentifiersIndex3.sql Thu Nov 20 08:48:58 2025 +0100 +++ b/OrthancServer/Sources/Database/InstallDicomIdentifiersIndex3.sql Thu Nov 20 10:05:19 2025 +0100 @@ -20,3 +20,7 @@ CREATE INDEX DicomIdentifiersIndex3 ON DicomIdentifiers(tagGroup, tagElement, value); + +-- remove these 2 old indexes that are now redundant. +DROP INDEX IF EXISTS DicomIdentifiersIndex2; +DROP INDEX IF EXISTS DicomIdentifiersIndexValues; \ No newline at end of file diff -r b0251a5ab8ab -r 2bf85a1e2b85 OrthancServer/Sources/Database/PrepareDatabase.sql --- a/OrthancServer/Sources/Database/PrepareDatabase.sql Thu Nov 20 08:48:58 2025 +0100 +++ b/OrthancServer/Sources/Database/PrepareDatabase.sql Thu Nov 20 10:05:19 2025 +0100 @@ -107,8 +107,8 @@ -- The 3 following indexes were added in Orthanc 0.8.5 (database v5) CREATE INDEX DicomIdentifiersIndex1 ON DicomIdentifiers(id); --- CREATE INDEX DicomIdentifiersIndex2 ON DicomIdentifiers(tagGroup, tagElement); -- disabled in 1.12.10 --- CREATE INDEX DicomIdentifiersIndexValues ON DicomIdentifiers(value COLLATE BINARY); - temporarily disabled for testing +-- CREATE INDEX DicomIdentifiersIndex2 ON DicomIdentifiers(tagGroup, tagElement); -- removed in 1.12.10 (in InstallDicomIdentifiersIndex3.sql) +-- CREATE INDEX DicomIdentifiersIndexValues ON DicomIdentifiers(value COLLATE BINARY); -- removed in 1.12.10 (in InstallDicomIdentifiersIndex3.sql) CREATE INDEX ChangesIndex ON Changes(internalId);