diff --git a/PROMS/VEPROMS User Interface/PROMSFixes.Sql b/PROMS/VEPROMS User Interface/PROMSFixes.Sql index 1bbc54ab..1b594eaa 100644 --- a/PROMS/VEPROMS User Interface/PROMSFixes.Sql +++ b/PROMS/VEPROMS User Interface/PROMSFixes.Sql @@ -18917,9 +18917,10 @@ GO Copyright 2020 - Volian Enterprises, Inc. All rights reserved. *****************************************************************************/ /* - ========================================================================================================== - Author: Jake Ropar + ========================================================================================================== + Author: Jake Ropar / Matthew Schill Create Date: 06/23/2022 + Modify Date: 08/18/2025 Description: Finalizes Rofst Header Record / Updates LoadedDate if Success ========================================================================================================== */ @@ -18936,13 +18937,18 @@ GO Set LoadedDate = GetDate() Where RofstID = @RofstID; + + --always rebuild the rofst child and default indexes + DBCC DBREINDEX ('RofstChild'); + DBCC DBREINDEX ('RofstDefaultValue'); + -- Rebuild/Reorganize Indexes Exec [dbo].[vesp_UtilityCheckIndexes] 20.0, 5.0, 0, 1; - + Return; End - Go + GO IF (@@Error = 0) PRINT 'Procedure Creation: [vesp_RofstHeaderFinalizeLoad] Succeeded' ELSE PRINT 'Procedure Creation: [vesp_RofstHeaderFinalizeLoad] Error on Creation' @@ -24377,8 +24383,8 @@ BEGIN TRY -- Try Block DECLARE @RevDate varchar(255) DECLARE @RevDescription varchar(255) - set @RevDate = '08/13/2025 8:07 AM' - set @RevDescription = 'Improve Performance loading procedures with Alarms' + set @RevDate = '08/18/2025 2:07 PM' + set @RevDescription = 'Updated Index maintenance that occurs after RO FST Load to improve RO Performance' Select cast(@RevDate as datetime) RevDate, @RevDescription RevDescription PRINT 'SQL Code Revision ' + @RevDate + ' - ' + @RevDescription diff --git a/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs b/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs index 79bcf3bf..087b1c5d 100644 --- a/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs +++ b/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs @@ -839,7 +839,7 @@ namespace VEPROMS.CSLA.Library { using (SqlCommand cmd = cn.CreateCommand()) { - cmd.CommandTimeout = Database.DefaultTimeout; + cmd.CommandTimeout = 0; cmd.CommandType = CommandType.StoredProcedure; cmd.CommandText = "vesp_RofstHeaderFinalizeLoad";