Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Make OJS2 to OJS3 metrics upgrade faster on large installations #4131
The single sql query used to update the assoc_id's of assoc_type 531 is extremely slow in larger metric tables. For example a 900 megabyte metrics table takes around 34 hours to run the given query.
The query should be broken into smaller parts using an upgrade function. Pull request soon.
referenced this issue
Oct 10, 2018
The second test run with the 2 gigabyte metrics table now took 1.3 hours. The whole upgrade around 9 hours (not sure what the exact time was since it was finished during the night). The whole database was around 3.2 gigabytes.
For reference a 2 gigabyte db with 1 gigabyte metrics table took 34 hours with the old code.