Uploaded image for project: 'PUBLIC - Liferay Portal Enterprise Edition'
  1. PUBLIC - Liferay Portal Enterprise Edition
  2. LPE-1345

Upgrading a large database is unnecessarily slow - Update inner join

Details

    Description

      Upgrading a large database is unnecessarily slow in SQL Server and Oracle databases.

      MySQL supports a very developer friendly inner join for update statements. Oracle, SQL Server and other vendors support a more generic method of doing inner joins for an update using nested select statements. Currently, instead of using the more generic method, the upgrade process will iterate through every entry and call an update on that sql. For example, if there are 100,000 entries in the database, the upgrade process will make 1 sql select call and 100,000 updates. So to address this issue, the upgrade script will now always use the generic method of doing inner joins for an update.

      Attachments

        Issue Links

          Activity

            People

              samuel.kong Samuel Kong
              brian.chan Brian Chan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package
                  5.1 EE SP4 (5.1.7)
                  5.2 EE SP2 (5.2.6)