Company: Link Technologies
Case No: L13119. Project: 15.70: LinkSOFT Version 15.70
Logged By: Sanjay (Link Technologies) on 03 Mar 2025 01:16PM
Priority: Low
Product: Framework
Group: Enhancement
Time Taken: 8.00 (Weight: 8.00)
Assigned To: Sanjay (Link Technologies)
Circulation: Sanjay
Resolve By: Monday, 31 March 2025 02:58 PM [116 days since logged date]
Status: Closed
Subject: Process SYS008 - Rebuild database indexes does not reindex when "Rebuild" is enabled.
Summary:    

Process SYS008 - Rebuild database indexes does not reindex when "Rebuild" is enabled.

When disabled, the Reorganise correctly resolved the issue.

Audit Notes:Edited by sanjay on 15/05/25 09:33. Edited by sanjay on 15/05/25 09:27. 
06 Mar 202503:05PM Comment 1 by Sanjay (Link Technologies) Assigned To: Sanjay (Link Technologies) Followup Date: 31-03-2025 02:58 PM Time Taken: 4.00 Notes: ETC extended from: 03/03/2025 to 31/03/2025

We will set the DEFAULT to "REBUILD" = "N" and REORGANISE = "Y". See explanation below.

Users can still choose to REBUILD by changing the settings.
When Upgrading, we will set REBUILD = "N" if Reorganise = "Y"

*** Literature and Explanation ***

The difference in results is likely due to the distinct ways in which the REBUILD and REORGANIZE commands work for SQL Server indexes.

REBUILD:

This command drops and recreates the index from scratch. This can lead to better performance improvements because it fully reorganizes the index structure.
However, it can be resource-intensive and cause significant blocking while the operation is performed, especially if ONLINE = OFF is used.
The rebuild operation updates index statistics and removes fragmentation but can be more disruptive to the system.

REORGANIZE:

This command reorganizes the leaf level of the index by physically reordering the pages to match the logical order of the index, and also performs page compaction.
It is a less resource-intensive operation and does not cause the same level of blocking as REBUILD.
REORGANIZE gradually reduces fragmentation without dropping and recreating the index, making it less disruptive.
In your scenario, using Rebuild = 1 and Reorganise = 1 can sometimes be redundant because the REBUILD command already performs a full reorganization and compaction of the index. Thus, REORGANIZE afterward might not provide any additional benefits and can lead to inefficient use of resources.
However, choosing Rebuild = 0 and Reorganise = 1 might result in better performance because REORGANIZE is a more lightweight operation that doesn't cause significant blocking or resource consumption, making it more suitable for scenarios where minimal disruption is desired.
Ultimately, the choice between REBUILD and REORGANIZE depends on the specific requirements of your environment, such as the level of fragmentation, system load, and acceptable downtime.

03 Apr 202511:26AM Comment 2 by Sanjay (Link Technologies) Assigned To: Sanjay (Link Technologies) Followup Date: 10-04-2025 11:24 AM Time Taken: 4.00

Made the following change:

When upgrading or installing version 15.60, we set the "Rebuild Index = 'N'". Users can enable this if they need to REBUILD instead of REORGANISE.

Refer to comment 1 for detailed explanation.


If you have any queries regarding this support incident, please email Support@LinkTechnologies.com.au and include the Case No: L13119 in the subject line of all emails regarding this issue.

Document size: 3.4 KB
For call complaints, please contact the Managing Director of the company using this form