Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-11668

improve mysql upgrade script NodeDeleted.sql using SET FOREIGN_KEY_CHECKS

    Details

    • Type: Service Pack Request
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 4.2.1
    • Fix Version/s: 4.2.3
    • Component/s: Upgrades
    • Labels:
      None
    • Environment:
      upgrade 4.0.X to 4.2.1

      Description

      Investigation following on from MNT-11619 on a real system, shows an enormous improvement in speed by turning off
      foreign_key_checks
      at the beginning of the script and reactivating it at the end of the script (as recommended by Oracle Mysql Support toi the customer), i.e.

      SET FOREIGN_KEY_CHECKS=0
      
      <...>
      
      SET FOREIGN_KEY_CHECKS=1
      

      Customer saw on his 55 millions nodes Alfresco system run the script from 30 hours before that two lines change, to 1 hour after the change.

      Could we have Engineering validate the change so that our customer can apply it to the production system?

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedbugs Closed Bugs (Inactive)
                  Reporter:
                  amadon Alex Madon [X] (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 4 hours
                    4h

                      Structure Helper Panel