Upgrading is slow for instances with Performance Analytics due to table indexing
If Performance Analytics is enabled on an instance, and there are a very large number of records on the Scores [pa_scores] and Snapshots [pa_snapshots] tables, upgrading to Fuji Patch 7, Eureka Patch 12, or later, or from Geneva Patch 1, 2, or 3, upgrading takes a very long time.
When upgrading from a version prior to Fuji Patch 7 or Eureka Patch 12 or from Geneva Patch 1, 2 or 3, the upgrade takes an excessively long time to complete. Your system may take more or less time to complete the operation and it is not possible to predict how long it will take for your system to add the indexes. However, we have seen examples of 25 million records taking 34 hours to add the indexes, 5 million records taking 3 hours, etc.
With Fuji Patch 7, Eureka Patch 12 and Geneva Patch 4, the Scores [pa_scores] and Snapshots [pa_snapshots] tables are indexed. Adding an index to these tables when there are a large number of records may take a long time to complete.
Before upgrading, add the following indexes to the Scores [pa_scores] and Snapshots [pa_snapshots] tables during non-business hours to avoid performance impact:
- pa_scores(sys created on, start_at)
For instances on Fuji or later, see Create a table index in the product documentation. For instances on a release prior to Fuji, you can contact ServiceNow customer support to request the indexes.