[Rt-commit] [rtir] 02/05: Recommend several indexes that improve MySQL performance.

Kevin Falcone falcone at bestpractical.com
Wed Jul 3 20:19:54 EDT 2013


This is an automated email from the git hooks/post-receive script.

falcone pushed a commit to branch 2.9-trunk
in repository rtir.

commit 42e8601b5312f02b8343e7a2ca24a73827ce21ad
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Tue Jul 2 20:47:42 2013 -0400

    Recommend several indexes that improve MySQL performance.
    
    Without these, an upgrade on MySQL of more than a few thousand tickets
    may never finish.  The New/Old Reference Transaction indexes have the
    greatest impact.  The Type and OCFV indexes 'help' but those updates
    will still be slow.
---
 docs/UPGRADING-3.0 | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/docs/UPGRADING-3.0 b/docs/UPGRADING-3.0
index 0cfc442..6ccd1c5 100644
--- a/docs/UPGRADING-3.0
+++ b/docs/UPGRADING-3.0
@@ -11,6 +11,25 @@ The update steps implemented in the database upgrade script make
 significant changes to the database and its data. It's highly
 recommended that you save a DB backup before applying this script.
 
+=head3 MySQL
+
+If you are using MySQL you may want to apply the following indexes to
+improve the performance of the upgrade.
+
+    CREATE INDEX UPGRADE_TRANSACTIONS_TYPE ON Transactions (Type, Field);
+    CREATE INDEX UPGRADE_TRANSACTIONS_NEW ON Transactions(Field,ObjectType, Type, NewReference);
+    CREATE INDEX UPGRADE_TRANSACTIONS_OLD on Transactions(Field,ObjectType, Type, OldReference);
+    CREATE INDEX UPGRADE_OCFV_STATUS ON ObjectCustomFieldValues(Content,Disabled,CustomField);
+
+These should be removed following a successful since they are unlikely
+to be useful in normal RTIR usage.
+
+    DROP INDEX UPGRADE_TRANSACTIONS_TYPE;
+    DROP INDEX UPGRADE_TRANSACTIONS_NEW;
+    DROP INDEX UPGRADE_TRANSACTIONS_OLD;
+    DROP INDEX UPGRADE_OCFV_STATUS;
+
+
 =head2 Lifecycles
 
 RT 4.0 introduces a new feature, lifecycles, which allowed

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Rt-commit mailing list