[Rt-commit] rt branch, 4.4/shredder-indexes, created. rt-4.4.1-432-gb6150f7

Shawn Moore shawn at bestpractical.com
Thu Jun 22 13:32:57 EDT 2017


The branch, 4.4/shredder-indexes has been created
        at  b6150f7e90e97de7f60a324d28d81817ddba7d7d (commit)

- Log -----------------------------------------------------------------
commit de5e1be4fa841fe0d7f6f3eac376bd0edcaa58b4
Author: Greg Vernon <greg.vernon at switch.ch>
Date:   Wed Jun 21 19:46:39 2017 +0000

    More beneficial shredder indexes
    
    Fixes: T#187069

diff --git a/lib/RT/Shredder.pm b/lib/RT/Shredder.pm
index 108164d..518fc10 100644
--- a/lib/RT/Shredder.pm
+++ b/lib/RT/Shredder.pm
@@ -182,6 +182,12 @@ shredding on most databases.
 
     CREATE INDEX SHREDDER_ATTACHMENTS1 ON Attachments(Creator);
 
+    CREATE INDEX SHREDDER_LINKS1 ON Links(Target);
+
+    CREATE INDEX SHREDDER_ACL1 ON ACL(ObjectType, ObjectId);
+
+    CREATE INDEX SHREDDER_OCFV1 ON ObjectCustomFieldValues(ObjectType, ObjectId);
+
 =head1 INFORMATION FOR DEVELOPERS
 
 =head2 General API

commit b6150f7e90e97de7f60a324d28d81817ddba7d7d
Author: Greg Vernon <greg.vernon at switch.ch>
Date:   Thu Jun 22 13:32:33 2017 -0400

    These indexes should be deployed only for shredding

diff --git a/lib/RT/Shredder.pm b/lib/RT/Shredder.pm
index 518fc10..47244c0 100644
--- a/lib/RT/Shredder.pm
+++ b/lib/RT/Shredder.pm
@@ -167,7 +167,9 @@ Be sure to specify an absolute path.
 =head1 Database Indexes
 
 We have found that the following indexes significantly speed up
-shredding on most databases.
+shredding on most databases. However they are intended to be deployed
+only for the duration of your shredding, as they may have an adverse
+effect on the performance of ordinary RT operations.
 
     CREATE INDEX SHREDDER_CGM1 ON CachedGroupMembers(MemberId, GroupId, Disabled);
     CREATE INDEX SHREDDER_CGM2 ON CachedGroupMembers(ImmediateParentId,MemberId);

-----------------------------------------------------------------------


More information about the rt-commit mailing list