B2022-010 stored procedure getAssociationsByVersionID was loading RO FST information that was not needed.
This commit is contained in:
parent
0c96445942
commit
0acedd7e7a
@ -16905,6 +16905,51 @@ ELSE PRINT 'ScalarFunction Creation: [vefn_CheckAllXML] Error on Creation'
|
||||
GO
|
||||
|
||||
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getAssociationsByVersionID]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getAssociationsByVersionID];
|
||||
GO
|
||||
/*****************************************************************************
|
||||
Volian Enterprises - Proprietary Information - DO NOT COPY OR DISTRIBUTE
|
||||
Copyright 2022 - Volian Enterprises, Inc. All rights reserved.
|
||||
*****************************************************************************/
|
||||
CREATE PROCEDURE [dbo].[getAssociationsByVersionID]
|
||||
(
|
||||
@VersionID int
|
||||
)
|
||||
WITH EXECUTE AS OWNER
|
||||
AS
|
||||
begin
|
||||
SELECT
|
||||
[Associations].[AssociationID],
|
||||
[Associations].[VersionID],
|
||||
[Associations].[ROFstID],
|
||||
[Associations].[Config],
|
||||
[Associations].[DTS],
|
||||
[Associations].[UserID],
|
||||
[Associations].[LastChanged]
|
||||
-- B2022-010
|
||||
-- the following was slowing down getting associations
|
||||
-- which slowed down opening Search and any other time we got this information
|
||||
-- note that the ROFst information is not needed
|
||||
--,
|
||||
--[ROFsts].[RODbID] [ROFst_RODbID],
|
||||
--[ROFsts].[ROLookup] [ROFst_ROLookup],
|
||||
--[ROFsts].[Config] [ROFst_Config],
|
||||
--[ROFsts].[DTS] [ROFst_DTS],
|
||||
--[ROFsts].[UserID] [ROFst_UserID]
|
||||
FROM [Associations]
|
||||
JOIN [ROFsts] ON
|
||||
[ROFsts].[ROFstID]=[Associations].[ROFstID]
|
||||
WHERE
|
||||
[Associations].[VersionID]=@VersionID
|
||||
|
||||
RETURN
|
||||
end
|
||||
GO
|
||||
IF (@@Error = 0) PRINT 'Procedure Creation: [getAssociationsByVersionID] Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: [getAssociationsByVersionID] Error on Creation'
|
||||
GO
|
||||
|
||||
|
||||
|
||||
|
||||
@ -17382,8 +17427,8 @@ BEGIN TRY -- Try Block
|
||||
DECLARE @RevDate varchar(255)
|
||||
DECLARE @RevDescription varchar(255)
|
||||
|
||||
set @RevDate = '01/07/2022 9:15 AM'
|
||||
set @RevDescription = 'Removed unused Barakah Checklist format'
|
||||
set @RevDate = '01/17/2022 12:30 PM'
|
||||
set @RevDescription = 'getAssociationsByVersionID fix'
|
||||
|
||||
Select cast(@RevDate as datetime) RevDate, @RevDescription RevDescription
|
||||
PRINT 'SQL Code Revision ' + @RevDate + ' - ' + @RevDescription
|
||||
|
@ -16905,6 +16905,51 @@ ELSE PRINT 'ScalarFunction Creation: [vefn_CheckAllXML] Error on Creation'
|
||||
GO
|
||||
|
||||
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getAssociationsByVersionID]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getAssociationsByVersionID];
|
||||
GO
|
||||
/*****************************************************************************
|
||||
Volian Enterprises - Proprietary Information - DO NOT COPY OR DISTRIBUTE
|
||||
Copyright 2022 - Volian Enterprises, Inc. All rights reserved.
|
||||
*****************************************************************************/
|
||||
CREATE PROCEDURE [dbo].[getAssociationsByVersionID]
|
||||
(
|
||||
@VersionID int
|
||||
)
|
||||
WITH EXECUTE AS OWNER
|
||||
AS
|
||||
begin
|
||||
SELECT
|
||||
[Associations].[AssociationID],
|
||||
[Associations].[VersionID],
|
||||
[Associations].[ROFstID],
|
||||
[Associations].[Config],
|
||||
[Associations].[DTS],
|
||||
[Associations].[UserID],
|
||||
[Associations].[LastChanged]
|
||||
-- B2022-010
|
||||
-- the following was slowing down getting associations
|
||||
-- which slowed down opening Search and any other time we got this information
|
||||
-- note that the ROFst information is not needed
|
||||
--,
|
||||
--[ROFsts].[RODbID] [ROFst_RODbID],
|
||||
--[ROFsts].[ROLookup] [ROFst_ROLookup],
|
||||
--[ROFsts].[Config] [ROFst_Config],
|
||||
--[ROFsts].[DTS] [ROFst_DTS],
|
||||
--[ROFsts].[UserID] [ROFst_UserID]
|
||||
FROM [Associations]
|
||||
JOIN [ROFsts] ON
|
||||
[ROFsts].[ROFstID]=[Associations].[ROFstID]
|
||||
WHERE
|
||||
[Associations].[VersionID]=@VersionID
|
||||
|
||||
RETURN
|
||||
end
|
||||
GO
|
||||
IF (@@Error = 0) PRINT 'Procedure Creation: [getAssociationsByVersionID] Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: [getAssociationsByVersionID] Error on Creation'
|
||||
GO
|
||||
|
||||
|
||||
|
||||
|
||||
@ -17382,8 +17427,8 @@ BEGIN TRY -- Try Block
|
||||
DECLARE @RevDate varchar(255)
|
||||
DECLARE @RevDescription varchar(255)
|
||||
|
||||
set @RevDate = '01/07/2022 9:15 AM'
|
||||
set @RevDescription = 'Removed unused Barakah Checklist format'
|
||||
set @RevDate = '01/17/2022 12:30 PM'
|
||||
set @RevDescription = 'getAssociationsByVersionID fix'
|
||||
|
||||
Select cast(@RevDate as datetime) RevDate, @RevDescription RevDescription
|
||||
PRINT 'SQL Code Revision ' + @RevDate + ' - ' + @RevDescription
|
||||
|
Loading…
x
Reference in New Issue
Block a user