mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
54873: Merged V4.1-BUG-FIX (4.1.N) to HEAD-BUG-FIX (4.2.0): 54573: Merged PATCHES/V4.1.6 to V4.1-BUG-FIX (4.1.7) 54530: Merged PATCHES/V4.1.3 (4.1.3.11) to PATCHES/V4.1.6 (4.1.6) (MNT-9522) 53984: Merged DEV to PATCHES/V4.1.3 (4.1.3.10) 53849: MNT-9053 : Alfresco site listings cause high CPU usage on database server Created a patch to create new index in MySQL and drop the old one. 53955: MNT-9053 : Alfresco site listings cause high CPU usage on database server Added the patches for the rest of the supported DBs. 54105: MNT-9053 : Alfresco site listings cause high CPU usage on database server Corrected the create scripts and schema reference files. Note: Removed redundant generic script, incremented versions for patches, etc 54531: Removed accidental commit in rev 54530 (MNT-9522) Note: Incremented schema number and patch git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54877 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
24 lines
946 B
SQL
24 lines
946 B
SQL
--
|
|
-- Title: Add new index to alf_child_assoc
|
|
-- Database: PostgreSQL
|
|
-- Since: V4.1 Schema 5123
|
|
-- Author: Alex Mukha
|
|
--
|
|
-- Please contact support@alfresco.com if you need assistance with the upgrade.
|
|
--
|
|
-- MNT-9053 : Alfresco site listings cause high CPU usage on database server
|
|
|
|
DROP INDEX fk_alf_cass_pnode;
|
|
CREATE INDEX idx_alf_cass_pnode ON alf_child_assoc (parent_node_id, assoc_index, id);
|
|
|
|
--
|
|
-- Record script finish
|
|
--
|
|
DELETE FROM alf_applied_patch WHERE id = 'patch.db-V4.1-ChildAssoc-OrderBy';
|
|
INSERT INTO alf_applied_patch
|
|
(id, description, fixes_from_schema, fixes_to_schema, applied_to_schema, target_schema, applied_on_date, applied_to_server, was_executed, succeeded, report)
|
|
VALUES
|
|
(
|
|
'patch.db-V4.1-ChildAssoc-OrderBy', 'MNT-9053 : Alfresco site listings cause high CPU usage on database server',
|
|
0, 6032, -1, 6033, null, 'UNKNOWN', ${TRUE}, ${TRUE}, 'Script completed'
|
|
); |