@ajnyga wrote:
Hi,
We tried to upgrade our production server with multiple journals from 3.0.2 to 3.1.0-1.
We basically got stuck here: https://github.com/pkp/ojs/blob/ojs-stable-3_1_0/dbscripts/xml/upgrade.xml#L160
To be precise to this query: https://github.com/pkp/ojs/blob/ojs-stable-3_1_0/dbscripts/xml/upgrade/3.1.0_update_a.xml#L30
UPDATE metrics m, submission_file_settings sfs SET m.assoc_id = sfs.file_id WHERE m.assoc_type = 531 AND sfs.setting_name = 'old-supp-id' AND sfs.setting_value = m.assoc_id
Our metrics table has 3,3 million rows and submission_files_settings has 160 000 rows so the inner join command there seems to take for ages? It ran for 2 hours with no result.
The thing is that our metrics table has 0 hits for assoc_type 531, so two questions (@asmecher @bozana)
- Should I be worried that there are no 531 rows? Why is that?
- Any way of checking the query and making it faster? Of course I can just remove it, but probably others have large metrics tables as well.
Posts: 2
Participants: 1