-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added missing indexes to EdFi_Admin db (#642)
- Loading branch information
1 parent
9b3d748
commit 574278f
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
Artifacts/MsSql/Structure/Admin/0120-Add-GetClientForKey-Indexes.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
-- SPDX-License-Identifier: Apache-2.0 | ||
-- Licensed to the Ed-Fi Alliance under one or more agreements. | ||
-- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. | ||
-- See the LICENSE and NOTICES files in the project root for more information. | ||
|
||
-- Index [AK_ApiClients] -- | ||
BEGIN TRANSACTION | ||
IF NOT EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'dbo.ApiClients') AND name = N'AK_ApiClients') | ||
CREATE UNIQUE INDEX AK_ApiClients ON dbo.ApiClients ([Key]) | ||
GO | ||
COMMIT | ||
|
||
-- Index [IX_VendorNamespacePrefixes_VendorId] -- | ||
BEGIN TRANSACTION | ||
IF NOT EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'dbo.VendorNamespacePrefixes') AND name = N'IX_VendorNamespacePrefixes_VendorId') | ||
CREATE INDEX IX_VendorNamespacePrefixes_VendorId ON dbo.VendorNamespacePrefixes (Vendor_VendorId) INCLUDE (NamespacePrefix) | ||
GO | ||
COMMIT | ||
|
||
-- Index [IX_ApiClientOwnershipTokens_ApiClientId] -- | ||
BEGIN TRANSACTION | ||
IF NOT EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'dbo.ApiClientOwnershipTokens') AND name = N'IX_ApiClientOwnershipTokens_ApiClientId') | ||
CREATE INDEX IX_ApiClientOwnershipTokens_ApiClientId ON dbo.ApiClientOwnershipTokens (ApiClient_ApiClientId) INCLUDE (OwnershipToken_OwnershipTokenId) | ||
GO | ||
COMMIT |
22 changes: 22 additions & 0 deletions
22
Artifacts/PgSql/Structure/Admin/0120-Add-GetClientForKey-Indexes.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
-- SPDX-License-Identifier: Apache-2.0 | ||
-- Licensed to the Ed-Fi Alliance under one or more agreements. | ||
-- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. | ||
-- See the LICENSE and NOTICES files in the project root for more information. | ||
|
||
-- Index AK_ApiClients -- | ||
CREATE UNIQUE INDEX IF NOT EXISTS AK_ApiClients ON dbo.ApiClients | ||
( | ||
ApiClientId | ||
); | ||
|
||
-- Index IX_VendorNamespacePrefixes_VendorId -- | ||
CREATE INDEX IF NOT EXISTS IX_VendorNamespacePrefixes_VendorId ON dbo.VendorNamespacePrefixes | ||
( | ||
Vendor_VendorId | ||
) INCLUDE (NamespacePrefix); | ||
|
||
-- Index IX_ApiClientOwnershipTokens_ApiClientId -- | ||
CREATE INDEX IF NOT EXISTS IX_ApiClientOwnershipTokens_ApiClientId ON dbo.ApiClientOwnershipTokens | ||
( | ||
ApiClient_ApiClientId | ||
) INCLUDE (OwnershipToken_OwnershipTokenId); |