mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #11132
[Bug 1081947] [NEW] Adding Journal or Text box to a page takes approx 2 minutes to load
Public bug reported:
Mahara version 1.5.2
Linux CentOS release 5.8
PHP Version 5.3.15
MySQL 5.0.77
When editing a page and trying to add a normal text box by dragging it
into the page, this loads for approx 2 minutes or more and then
eventually appears.
It happens with a journal too but all others are fine and are instant as
they should be.
I'm not getting any apache log errors for this nor general server
errors. The only thing I am able to see is the query that it hangs on
for this length of time.... it is the below...
I hope someone can help as obviously this is causing quite a lot of
issues for the users!! Anyone able to diagnose what is the issue here?
The thing is, there is another exact version of the Mahara site
alongside this one but just a blank version which runs perfectly fine so
this must be an issue within the database somewhere or the maharadata.
Query below: this hangs for about 1 minute 45..
SELECT a.*, CAST(a.owner IS NOT NULL AND a.owner = '1739' AS UNSIGNED) AS editable FROM "artefact" a
LEFT OUTER JOIN "artefact_parent_cache" apc ON (a.id = apc.artefact AND a.institution = 'mahara' AND apc.parent = 371) WHERE (
a.owner = '1739'
OR a.id IN (
SELECT aar.artefact
FROM "group_member" m
JOIN "artefact" aa ON m.group = aa.group
JOIN "artefact_access_role" aar ON aar.role = m.role AND aar.artefact = aa.id
WHERE m.member = '1739' AND aar.can_republish = 1
)
OR a.id IN (SELECT artefact FROM "artefact_access_usr" WHERE usr = '1739' AND can_republish = 1)
OR a.institution IN ('test','mahara')
) AND artefacttype IN('blog')ORDER BY title ASC LIMIT 10 |
Then this one for the rest of the time until eventually the text box or
journal appears on the page:
SELECT COUNT(*) FROM "artefact" a
LEFT OUTER JOIN "artefact_parent_cache" apc ON (a.id = apc.artefact AND a.institution = 'mahara' AND apc.parent = 371) WHERE (
a.owner = '1739'
OR a.id IN (
SELECT aar.artefact
FROM "group_member" m
JOIN "artefact" aa ON m.group = aa.group
JOIN "artefact_access_role" aar ON aar.role = m.role AND aar.artefact = aa.id
WHERE m.member = '1739' AND aar.can_republish = 1
)
OR a.id IN (SELECT artefact FROM "artefact_access_usr" WHERE usr = '1739' AND can_republish = 1)
OR a.institution IN ('test','mahara')
) AND artefacttype IN('blogpost') |
Thank you for your help
** Affects: mahara
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/1081947
Title:
Adding Journal or Text box to a page takes approx 2 minutes to load
Status in Mahara ePortfolio:
New
Bug description:
Mahara version 1.5.2
Linux CentOS release 5.8
PHP Version 5.3.15
MySQL 5.0.77
When editing a page and trying to add a normal text box by dragging it
into the page, this loads for approx 2 minutes or more and then
eventually appears.
It happens with a journal too but all others are fine and are instant
as they should be.
I'm not getting any apache log errors for this nor general server
errors. The only thing I am able to see is the query that it hangs on
for this length of time.... it is the below...
I hope someone can help as obviously this is causing quite a lot of
issues for the users!! Anyone able to diagnose what is the issue here?
The thing is, there is another exact version of the Mahara site
alongside this one but just a blank version which runs perfectly fine
so this must be an issue within the database somewhere or the
maharadata.
Query below: this hangs for about 1 minute 45..
SELECT a.*, CAST(a.owner IS NOT NULL AND a.owner = '1739' AS UNSIGNED) AS editable FROM "artefact" a
LEFT OUTER JOIN "artefact_parent_cache" apc ON (a.id = apc.artefact AND a.institution = 'mahara' AND apc.parent = 371) WHERE (
a.owner = '1739'
OR a.id IN (
SELECT aar.artefact
FROM "group_member" m
JOIN "artefact" aa ON m.group = aa.group
JOIN "artefact_access_role" aar ON aar.role = m.role AND aar.artefact = aa.id
WHERE m.member = '1739' AND aar.can_republish = 1
)
OR a.id IN (SELECT artefact FROM "artefact_access_usr" WHERE usr = '1739' AND can_republish = 1)
OR a.institution IN ('test','mahara')
) AND artefacttype IN('blog')ORDER BY title ASC LIMIT 10 |
Then this one for the rest of the time until eventually the text box
or journal appears on the page:
SELECT COUNT(*) FROM "artefact" a
LEFT OUTER JOIN "artefact_parent_cache" apc ON (a.id = apc.artefact AND a.institution = 'mahara' AND apc.parent = 371) WHERE (
a.owner = '1739'
OR a.id IN (
SELECT aar.artefact
FROM "group_member" m
JOIN "artefact" aa ON m.group = aa.group
JOIN "artefact_access_role" aar ON aar.role = m.role AND aar.artefact = aa.id
WHERE m.member = '1739' AND aar.can_republish = 1
)
OR a.id IN (SELECT artefact FROM "artefact_access_usr" WHERE usr = '1739' AND can_republish = 1)
OR a.institution IN ('test','mahara')
) AND artefacttype IN('blogpost') |
Thank you for your help
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1081947/+subscriptions
Follow ups
-
[Bug 1081947] Re: Use of CAST() causes extreme slowdown in large MySQL sites
From: Robert Lyon, 2014-04-22
-
[Bug 1081947] Re: Use of CAST() causes extreme slowdown in large MySQL sites
From: Aaron Wells, 2014-04-03
-
[Bug 1081947] Re: Use of CAST() causes extreme slowdown in large MySQL sites
From: Aaron Wells, 2014-04-03
-
[Bug 1081947] A change has been merged
From: Mahara Bot, 2014-04-03
-
[Bug 1081947] A change has been merged
From: Mahara Bot, 2014-04-02
-
[Bug 1081947] A patch has been submitted for review
From: Mahara Bot, 2014-04-01
-
[Bug 1081947] Re: Use of CAST() causes extreme slowdown in large MySQL sites
From: Son Nguyen, 2014-04-01
-
[Bug 1081947] A patch has been submitted for review
From: Mahara Bot, 2014-04-01
-
[Bug 1081947] Re: Use of CAST() causes extreme slowdown in large MySQL sites
From: Aaron Wells, 2013-12-18
-
[Bug 1081947] Re: Use of CAST() causes extreme slowdown in large MySQL sites
From: Aaron Wells, 2013-12-18
-
[Bug 1081947] A change has been merged
From: Mahara Bot, 2013-12-17
-
[Bug 1081947] Re: Use of CAST() causes extreme slowdown in large MySQL sites
From: Aaron Wells, 2013-12-17
-
[Bug 1081947] Re: Use of CAST() causes extreme slowdown in large MySQL sites
From: Aaron Wells, 2013-12-17
-
[Bug 1081947] A change has been merged
From: Mahara Bot, 2013-12-17
-
[Bug 1081947] Re: Use of CAST() causes extreme slowdown in large MySQL sites
From: Aaron Wells, 2013-12-17
-
[Bug 1081947] Re: Use of CAST() causes extreme slowdown in large MySQL sites
From: Aaron Wells, 2013-12-17
-
[Bug 1081947] Re: Use of CAST() causes extreme slowdown in large MySQL sites
From: Aaron Wells, 2013-12-17
-
[Bug 1081947] Re: Use of CAST() causes extreme slowdown in large MySQL sites
From: Aaron Wells, 2013-12-16
-
[Bug 1081947] Re: Use of CAST() causes extreme slowdown in large MySQL sites
From: Robert Lyon, 2013-12-03
-
[Bug 1081947] Re: Use of CAST() causes extreme slowdown in large MySQL sites
From: Aaron Wells, 2013-11-27
-
[Bug 1081947] Re: Use of CAST() causes extreme slowdown in large MySQL sites
From: Robert Lyon, 2013-11-26
-
[Bug 1081947] Re: Use of CAST() causes extreme slowdown in large MySQL sites
From: Robert Lyon, 2013-11-25
-
[Bug 1081947] Re: Adding Journal or Text box to a page takes approx 2 minutes to load
From: Aaron Wells, 2013-10-22
-
[Bug 1081947] Re: Adding Journal or Text box to a page takes approx 2 minutes to load
From: Aaron Wells, 2013-09-30
-
[Bug 1081947] Re: Adding Journal or Text box to a page takes approx 2 minutes to load
From: Aaron Wells, 2013-08-12
-
[Bug 1081947] Re: Adding Journal or Text box to a page takes approx 2 minutes to load
From: Rahim Virani, 2013-08-10
-
[Bug 1081947] Re: Adding Journal or Text box to a page takes approx 2 minutes to load
From: Rahim Virani, 2013-08-10
-
[Bug 1081947] Re: Adding Journal or Text box to a page takes approx 2 minutes to load
From: Rahim Virani, 2013-08-09
-
[Bug 1081947] Re: Adding Journal or Text box to a page takes approx 2 minutes to load
From: Donna Hrynkiw, 2013-08-09
-
[Bug 1081947] Re: Adding Journal or Text box to a page takes approx 2 minutes to load
From: Aaron Wells, 2013-04-19
-
[Bug 1081947] Re: Adding Journal or Text box to a page takes approx 2 minutes to load
From: Yaju Mahida, 2013-01-18
-
[Bug 1081947] Re: Adding Journal or Text box to a page takes approx 2 minutes to load
From: Hugh Davenport, 2012-11-25
-
[Bug 1081947] Re: Adding Journal or Text box to a page takes approx 2 minutes to load
From: Andrea Gordon, 2012-11-22
-
[Bug 1081947] [NEW] Adding Journal or Text box to a page takes approx 2 minutes to load
From: Andrea Gordon, 2012-11-22
References