[Rt-commit] rt branch 4.4/create-index-on-objectcustomfields-objectid created. rt-4.4.5-7-g60b19d9ed2

BPS Git Server git at git.bestpractical.com
Wed Dec 22 14:54:42 UTC 2021


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".

The branch, 4.4/create-index-on-objectcustomfields-objectid has been created
        at  60b19d9ed2f3ab10d25f42c45b49079856ce0dbe (commit)

- Log -----------------------------------------------------------------
commit 60b19d9ed2f3ab10d25f42c45b49079856ce0dbe
Author: Brian Conry <bconry at bestpractical.com>
Date:   Wed Dec 22 08:39:00 2021 -0600

    Add index on ObjectCustomFields.ObjectId
    
    Enhance performance of queries looking for custom fields by the specific
    objects that they are applied to, e.g. RT::Queue->TicketCustomFields to
    find the custom fields for tickets in a particular queue.
    
    Primarily benefits installations with a very large number of custom
    fields.

diff --git a/etc/upgrade/4.4.6/indexes b/etc/upgrade/4.4.6/indexes
new file mode 100644
index 0000000000..0bce54cf10
--- /dev/null
+++ b/etc/upgrade/4.4.6/indexes
@@ -0,0 +1,9 @@
+use strict;
+use warnings;
+
+$RT::Handle->MakeSureIndexExists(
+    Table => 'ObjectCustomFields',
+    Columns => ['ObjectId'],
+);
+        
+1;  

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


hooks/post-receive
-- 
rt


More information about the rt-commit mailing list