Hi @asmecher @jonasraoni
OJS-3.4.0.4
PHP-8.1
I have upgraded from OJS-3.3.0-14 to OJS-3.4.0-4 and after live server we are now facing slow performance issue. Some time out error
occurred.
Have similar problem but don’t understand what to do.
select s.* from submissions as s left join publications as po on s.current_publication_id = po.publication_id where s.context_id in (53) and s.status in (3) and (exists (select * from submission_search_objects as sso inner join submission_search_object_keywords as ssok on sso.object_id = ssok.object_id inner join submission_search_keyword_list as sskl on sskl.keyword_id = ssok.keyword_id where sskl.keyword_text = LOWER('access') and s.submission_id = sso.submission_id) or s.submission_id in (select p.submission_id from publications as p inner join publication_settings as ps on p.publication_id = ps.publication_id where ps.setting_name = 'title' and LOWER(ps.setting_value) LIKE CONCAT('%', LOWER('access'), '%')) or s.submission_id in (select p.submission_id from publications as p inner join authors as au on au.publication_id = p.publication_id inner join author_settings as aus on aus.author_id = au.author_id where aus.setting_name in ('givenName', 'familyName', 'orcid') and LOWER(aus.setting_value) LIKE CONCAT('%', LOWER('access'), '%')) or exists (select * from submission_search_objects as sso inner join submission_search_object_keywords as ssok on sso.object_id = ssok.object_id inner join submission_search_keyword_list as sskl on sskl.keyword_id = ssok.keyword_id where sskl.keyword_text = LOWER('resources') and s.submission_id = sso.submission_id) or s.submission_id in (select p.submission_id from publications as p inner join publication_settings as ps on p.publication_id = ps.publication_id where ps.setting_name = 'title' and LOWER(ps.setting_value) LIKE CONCAT('%', LOWER('resources'), '%')) or s.submission_id in (select p.submission_id from publications as p inner join authors as au on au.publication_id = p.publication_id inner join author_settings as aus on aus.author_id = au.author_id where aus.setting_name in ('givenName', 'familyName', 'orcid') and LOWER(aus.setting_value) LIKE CONCAT('%', LOWER('resources'), '%')) or exists (select * from submission_search_objects as sso inner join submission_search_object_keywords as ssok on sso.object_id = ssok.object_id inner join submission_search_keyword_list as sskl on sskl.keyword_id = ssok.keyword_id where sskl.keyword_text = LOWER('control') and s.submission_id = sso.submission_id) or s.submission_id in (select p.submission_id from publications as p inner join publication_settings as ps on p.publication_id = ps.publication_id where ps.setting_name = 'title' and LOWER(ps.setting_value) LIKE CONCAT('%', LOWER('control'), '%')) or s.submission_id in (select p.submission_id from publications as p inner join authors as au on au.publication_id = p.publication_id inner join author_settings as aus on aus.author_id = au.author_id where aus.setting_name in ('givenName', 'familyName', 'orcid') and LOWER(aus.setting_value) LIKE CONCAT('%', LOWER('control'), '%')) or exists (select * from submission_search_objects as sso inner join submission_search_object_keywords as ssok on sso.object_id = ssok.object_id inner join submission_search_keyword_list as sskl on sskl.keyword_id = ssok.keyword_id where sskl.keyword_text = LOWER('fisheries') and s.submission_id = sso.submission_id) or s.submission_id in (select p.submission_id from publications as p inner join publication_settings as ps on p.publication_id = ps.publication_id where ps.setting_name = 'title' and LOWER(ps.setting_value) LIKE CONCAT('%', LOWER('fisheries'), '%')) or s.submission_id in (select p.submission_id from publications as p inner join authors as au on au.publication_id = p.publication_id inner join author_settings as aus on aus.author_id = au.author_id where aus.setting_name in ('givenName', 'familyName', 'orcid') and LOWER(aus.setting_value) LIKE CONCAT('%', LOWER('fisheries'), '%')) or exists (select * from submission_search_objects as sso inner join submission_search_object_keywords as ssok on sso.object_id = ssok.object_id inner join submission_search_keyword_list as sskl on sskl.keyword_id = ssok.keyword_id where sskl.keyword_text = LOWER('gender') and s.submission_id = sso.submission_id) or s.submission_id in (select p.submission_id from publications as p inner join publication_settings as ps on p.publication_id = ps.publication_id where ps.setting_name = 'title' and LOWER(ps.setting_value) LIKE CONCAT('%', LOWER('gender'), '%')) or s.submission_id in (select p.submission_id from publications as p inner join authors as au on au.publication_id = p.publication_id inner join author_settings as aus on aus.author_id = au.author_id where aus.setting_name in ('givenName', 'familyName', 'orcid') and LOWER(aus.setting_value) LIKE CONCAT('%', LOWER('gender'), '%')) or exists (select * from submission_search_objects as sso inner join submission_search_object_keywords as ssok on sso.object_id = ssok.object_id inner join submission_search_keyword_list as sskl on sskl.keyword_id = ssok.keyword_id where sskl.keyword_text = LOWER('roles') and s.submission_id = sso.submission_id) or s.submission_id in (select p.submission_id from publications as p inner join publication_settings as ps on p.publication_id = ps.publication_id where ps.setting_name = 'title' and LOWER(ps.setting_value) LIKE CONCAT('%', LOWER('roles'), '%')) or s.submission_id in (select p.submission_id from publications as p inner join authors as au on au.publication_id = p.publication_id inner join author_settings as aus on aus.author_id = au.author_id where aus.setting_name in ('givenName', 'familyName', 'orcid') and LOWER(aus.setting_value) LIKE CONCAT('%', LOWER('roles'), '%')) or exists (select * from submission_search_objects as sso inner join submission_search_object_keywords as ssok on sso.object_id = ssok.object_id inner join submission_search_keyword_list as sskl on sskl.keyword_id = ssok.keyword_id where sskl.keyword_text = LOWER('chain') and s.submission_id = sso.submission_id) or s.submission_id in (select p.submission_id from publications as p inner join publication_settings as ps on p.publication_id = ps.publication_id where ps.setting_name = 'title' and LOWER(ps.setting_value) LIKE CONCAT('%', LOWER('chain'), '%')) or s.submission_id in (select p.submission_id from publications as p inner join authors as au on au.publication_id = p.publication_id inner join author_settings as aus on aus.author_id = au.author_id where aus.setting_name in ('givenName', 'familyName', 'orcid') and LOWER(aus.setting_value) LIKE CONCAT('%', LOWER('chain'), '%'))) and s.submission_id not in (109072) order by (select COUNT(DISTINCT sskl.keyword_id) from submission_search_objects as sso inner join submission_search_object_keywords as ssok on ssok.object_id = sso.object_id inner join submission_search_keyword_list as sskl on sskl.keyword_id = ssok.keyword_id where (sskl.keyword_text = LOWER('access') or sskl.keyword_text = LOWER('resources') or sskl.keyword_text = LOWER('control') or sskl.keyword_text = LOWER('fisheries') or sskl.keyword_text = LOWER('gender') or sskl.keyword_text = LOWER('roles') or sskl.keyword_text = LOWER('chain')) and s.submission_id = sso.submission_id) desc, (select COUNT(0) from submission_search_objects as sso inner join submission_search_object_keywords as ssok on ssok.object_id = sso.object_id inner join submission_search_keyword_list as sskl on sskl.keyword_id = ssok.keyword_id where (sskl.keyword_text = LOWER('access') or sskl.keyword_text = LOWER('resources') or sskl.keyword_text = LOWER('control') or sskl.keyword_text = LOWER('fisheries') or sskl.keyword_text = LOWER('gender') or sskl.keyword_text = LOWER('roles') or sskl.keyword_text = LOWER('chain')) and s.submission_id = sso.submission_id) desc limit 10 offset 0 |
I have checked the MYSQL process, a lot of the queries mentioned above are executing, but not completing.
I have not uploaded any plugin and any kind of data, just upgraded and uploaded to server but after some time the above problem has appeared.
Please provide solution.