Kunena 7.0.6 & Kunena 6.4.12 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.0.6 [K 7.0.6] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0.

The Kunena team is also pleased to announce the twelfth version of Kunena 6.4, a native Joomla extension for Joomla! 5.0, 5.1, 5.2, 5.3, 5.4 and 6.0.

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Question Slow_Queries

More
17 years 1 day ago #20249 by irradiate
Slow_Queries was created by irradiate
Hi All,

This is a carry on from my CPU abuse thread in the 1.0.9 section.

I have changed hosts.... Hostmonster now, upgraded to 1.5.3 and have access to the slow queries log and thought I would post them here for you to look at in case there is something wrong!

Cheers & Thank You!!!
Code:
# Wed Jun 17 06:05:31 2009 # Query_time: 3 Lock_time: 0 Rows_sent: 0 Rows_examined: 0 use ******_joomla; SELECT a.*, t.mesid, t.message AS messagetext, m.mesid AS attachmesid, (f.thread>0) AS myfavorite, u.avatar, MAX(b.time) AS lastpost FROM jos_fb_messages AS a JOIN jos_fb_messages_text AS t ON a.thread = t.mesid LEFT JOIN jos_fb_messages AS b ON b.thread = a.thread LEFT JOIN jos_fb_attachments AS m ON m.mesid = a.id LEFT JOIN jos_fb_favorites AS f ON f.thread = a.id && f.userid='1345' LEFT JOIN jos_fb_users AS u ON u.userid = a.userid WHERE a.parent = '0' AND a.catid = '42' AND a.hold = '0' GROUP BY id ORDER BY ordering DESC, lastpost DESC LIMIT 0, 20 # Wed Jun 17 06:05:35 2009 # Query_time: 3 Lock_time: 0 Rows_sent: 0 Rows_examined: 0 SELECT a.*, t.mesid, t.message AS messagetext, m.mesid AS attachmesid, (f.thread>0) AS myfavorite, u.avatar, MAX(b.time) AS lastpost FROM jos_fb_messages AS a JOIN jos_fb_messages_text AS t ON a.thread = t.mesid LEFT JOIN jos_fb_messages AS b ON b.thread = a.thread LEFT JOIN jos_fb_attachments AS m ON m.mesid = a.id LEFT JOIN jos_fb_favorites AS f ON f.thread = a.id && f.userid='1345' LEFT JOIN jos_fb_users AS u ON u.userid = a.userid WHERE a.parent = '0' AND a.catid = '43' AND a.hold = '0' GROUP BY id ORDER BY ordering DESC, lastpost DESC LIMIT 0, 20 # Wed Jun 17 06:17:09 2009 # Query_time: 3 Lock_time: 0 Rows_sent: 0 Rows_examined: 0 use ******_joomla; SELECT DISTINCT thread FROM jos_fb_messages WHERE catid='37' AND hold='0' AND moved='0' AND time>'1213702064' GROUP BY thread # Wed Jun 17 06:42:03 2009 # Query_time: 2 Lock_time: 0 Rows_sent: 0 Rows_examined: 0 use ******_joomla; SELECT a.*, t.mesid, t.message AS messagetext, m.mesid AS attachmesid, (f.thread>0) AS myfavorite, u.avatar, MAX(b.time) AS lastpost FROM jos_fb_messages AS a JOIN jos_fb_messages_text AS t ON a.thread = t.mesid LEFT JOIN jos_fb_messages AS b ON b.thread = a.thread LEFT JOIN jos_fb_attachments AS m ON m.mesid = a.id LEFT JOIN jos_fb_favorites AS f ON f.thread = a.id && f.userid='1406' LEFT JOIN jos_fb_users AS u ON u.userid = a.userid WHERE a.parent = '0' AND a.catid = '64' AND a.hold = '0' GROUP BY id ORDER BY ordering DESC, lastpost DESC LIMIT 0, 20 # Wed Jun 17 06:44:05 2009 # Query_time: 2 Lock_time: 0 Rows_sent: 0 Rows_examined: 0 use ******_joomla; SELECT c.*, m.id AS mesid, m.subject, mm.catid, m.name AS mname, m.userid, u.username, u.name AS uname FROM jos_fb_categories AS c LEFT JOIN jos_fb_messages AS m ON c.id_last_msg=m.id LEFT JOIN jos_users AS u ON u.id=m.userid LEFT JOIN jos_fb_messages AS mm ON mm.id=c.id_last_msg WHERE c.parent='1' AND c.published='1' ORDER BY ordering # Wed Jun 17 06:45:48 2009 # Query_time: 2 Lock_time: 0 Rows_sent: 0 Rows_examined: 0 SELECT a.*, t.mesid, t.message AS messagetext, m.mesid AS attachmesid, (f.thread>0) AS myfavorite, u.avatar, MAX(b.time) AS lastpost FROM jos_fb_messages AS a JOIN jos_fb_messages_text AS t ON a.thread = t.mesid LEFT JOIN jos_fb_messages AS b ON b.thread = a.thread LEFT JOIN jos_fb_attachments AS m ON m.mesid = a.id LEFT JOIN jos_fb_favorites AS f ON f.thread = a.id && f.userid='1406' LEFT JOIN jos_fb_users AS u ON u.userid = a.userid WHERE a.parent = '0' AND a.catid = '27' AND a.hold = '0' GROUP BY id ORDER BY ordering DESC, lastpost DESC LIMIT 0, 20 # Wed Jun 17 06:56:44 2009 # Query_time: 4 Lock_time: 0 Rows_sent: 0 Rows_examined: 0 use ******_joomla; UPDATE `jos_session` SET `time`='1245243400',`userid`='1131',`usertype`='Registered',`username`='pellipeeli11',`gid`='18',`guest`='0',`client_id`='0' WHERE session_id='e7249ae2d8111f00e979f3a0b6cedac4' # Wed Jun 17 06:56:44 2009 # Query_time: 4 Lock_time: 0 Rows_sent: 0 Rows_examined: 0 SELECT a.`userid` as _userid , a.`status` as _status , a.`points` as _points, a.`posted_on` as _posted_on, a.`avatar` as _avatar , a.`thumb` as _thumb , a.`invite` as _invite, a.`params` as _cparams, a.`view` as _view, a.`friendcount` as _friendcount, s.`userid` as _isonline, u.* FROM jos_community_users as a LEFT JOIN jos_users u ON u.`id`=a.`userid` LEFT OUTER JOIN jos_session s ON s.`userid`=a.`userid` WHERE a.`userid`='4910' # Wed Jun 17 06:57:27 2009 # Query_time: 2 Lock_time: 0 Rows_sent: 0 Rows_examined: 0 use ******_joomla; SELECT subject, id FROM jos_fb_messages WHERE id=49066 # Wed Jun 17 06:57:27 2009 # Query_time: 2 Lock_time: 0 Rows_sent: 0 Rows_examined: 0 use ******_joomla; SHOW TABLES LIKE 'jos_fb_%' # Wed Jun 17 06:57:29 2009 # Query_time: 2 Lock_time: 0 Rows_sent: 0 Rows_examined: 0 use ******_joomla; SELECT g.* FROM jos_core_acl_aro_groups AS g INNER JOIN jos_core_acl_groups_aro_map AS gm ON gm.group_id = g.id INNER JOIN jos_core_acl_aro AS ao ON ao.id = gm.aro_id WHERE ao.value='3299' ORDER BY g.id # Wed Jun 17 06:57:29 2009 # Query_time: 4 Lock_time: 2 Rows_sent: 0 Rows_examined: 0 SELECT DISTINCT thread FROM jos_fb_messages WHERE catid='47' AND hold='0' AND moved='0' AND time>'1213702064' GROUP BY thread # Wed Jun 17 06:57:29 2009 # Query_time: 2 Lock_time: 0 Rows_sent: 0 Rows_examined: 0 SELECT DISTINCT thread FROM jos_fb_messages WHERE catid='57' AND hold='0' AND moved='0' AND time>'1213706932' GROUP BY thread # Wed Jun 17 06:57:29 2009 # Query_time: 2 Lock_time: 0 Rows_sent: 0 Rows_examined: 0 DELETE FROM jos_session WHERE ( time < '1245241647' ) # Wed Jun 17 06:57:32 2009 # Query_time: 3 Lock_time: 0 Rows_sent: 0 Rows_examined: 0 use ******_joomla; UPDATE `jos_fb_sessions` SET `allowed`='1,3,4,5,6,7,8,9,10,11,12,13,15,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67',`lasttime`='1213706819',`readtopics`='51826,51829,50863,51030,51729',`currvisit`='1245243449' WHERE userid='3299' # Wed Jun 17 06:57:32 2009 # Query_time: 3 Lock_time: 0 Rows_sent: 0 Rows_examined: 0 use ******_joomla; SHOW TABLES LIKE 'jos_fb_%' # Wed Jun 17 06:57:35 2009 # Query_time: 3 Lock_time: 0 Rows_sent: 0 Rows_examined: 0 use ******_joomla; SHOW TABLES LIKE 'jos_fb_%' # Wed Jun 17 06:57:35 2009 # Query_time: 3 Lock_time: 0 Rows_sent: 0 Rows_examined: 0 SELECT name, id FROM jos_fb_categories WHERE id=48 # Wed Jun 17 06:57:35 2009 # Query_time: 6 Lock_time: 2 Rows_sent: 0 Rows_examined: 0 SELECT COUNT(*) FROM `jos_community_groups_members` WHERE `memberid`='3136' AND `approved`='1' # Wed Jun 17 06:57:40 2009 # Query_time: 8 Lock_time: 3 Rows_sent: 0 Rows_examined: 0 use ******_joomla; SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid, a.created, a.created_by, a.created_by_alias, a.modified, a.modified_by, a.checked_out, a.checked_out_time, a.publish_up, a.publish_down, a.images, a.attribs, a.urls, a.metakey, a.metadesc, a.access, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END as slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END as catslug, CHAR_LENGTH( a.`fulltext` ) AS readmore, u.name AS author, u.usertype, g.name AS groups, u.email as author_email, cc.title AS category, s.title AS section, s.ordering AS s_ordering, cc.ordering AS cc_ordering, a.ordering AS a_ordering, f.ordering AS f_ordering FROM jos_content AS a INNER JOIN jos_content_frontpage AS f ON f.content_id = a.id LEFT JOIN jos_categories AS cc ON cc.id = a.catid LEFT JOIN jos_sections AS s ON s.id = a.sectionid LEFT JOIN jos_users AS u ON u.id = a.created_by LEFT JOIN jos_groups AS g ON a.access = g.id WHERE 1 AND a.access <= 1 AND a.state = 1 AND (( cc.published = 1 AND s.published = 1 ) OR ( a.catid = 0 AND a.sectionid = 0 ) ) AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2009-06-17 12:57:32' ) AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2009-06-17 12:57:32' ) ORDER BY f.ordering LIMIT 0, 3 # Wed Jun 17 06:57:41 2009 # Query_time: 9 Lock_time: 4 Rows_sent: 0 Rows_examined: 0 SELECT a.`userid` as _userid , a.`status` as _status , a.`points` as _points, a.`posted_on` as _posted_on, a.`avatar` as _avatar , a.`thumb` as _thumb , a.`invite` as _invite, a.`params` as _cparams, a.`view` as _view, a.`friendcount` as _friendcount, s.`userid` as _isonline, u.* FROM jos_community_users as a LEFT JOIN jos_users u ON u.`id`=a.`userid` LEFT OUTER JOIN jos_session s ON s.`userid`=a.`userid` WHERE a.`userid`='3299' # Wed Jun 17 06:57:42 2009 # Query_time: 6 Lock_time: 0 Rows_sent: 0 Rows_examined: 0 use ******_joomla; SELECT DISTINCT thread FROM jos_fb_messages WHERE catid='51' AND hold='0' AND moved='0' AND time>'1213702064' GROUP BY thread # Wed Jun 17 06:57:43 2009 # Query_time: 7 Lock_time: 4 Rows_sent: 0 Rows_examined: 0 use ******_joomla; SELECT a.`userid` as _userid , a.`status` as _status , a.`points` as _points, a.`posted_on` as _posted_on, a.`avatar` as _avatar , a.`thumb` as _thumb , a.`invite` as _invite, a.`params` as _cparams, a.`view` as _view, a.`friendcount` as _friendcount, s.`userid` as _isonline, u.* FROM jos_community_users as a LEFT JOIN jos_users u ON u.`id`=a.`userid` LEFT OUTER JOIN jos_session s ON s.`userid`=a.`userid` WHERE a.`userid`='340' # Wed Jun 17 06:57:43 2009 # Query_time: 3 Lock_time: 0 Rows_sent: 0 Rows_examined: 0 use ******_joomla; SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid, a.created, a.created_by, a.created_by_alias, a.modified, a.modified_by, a.checked_out, a.checked_out_time, a.publish_up, a.publish_down, a.images, a.attribs, a.urls, a.metakey, a.metadesc, a.access, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END as slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END as catslug, CHAR_LENGTH( a.`fulltext` ) AS readmore, u.name AS author, u.usertype, g.name AS groups, u.email as author_email, cc.title AS category, s.title AS section, s.ordering AS s_ordering, cc.ordering AS cc_ordering, a.ordering AS a_ordering, f.ordering AS f_ordering FROM jos_content AS a INNER JOIN jos_content_frontpage AS f ON f.content_id = a.id LEFT JOIN jos_categories AS cc ON cc.id = a.catid LEFT JOIN jos_sections AS s ON s.id = a.sectionid LEFT JOIN jos_users AS u ON u.id = a.created_by LEFT JOIN jos_groups AS g ON a.access = g.id WHERE 1 AND a.access <= 1 AND a.state = 1 AND (( cc.published = 1 AND s.published = 1 ) OR ( a.catid = 0 AND a.sectionid = 0 ) ) AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2009-06-17 12:57:32' ) AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2009-06-17 12:57:32' ) ORDER BY f.ordering # Wed Jun 17 06:57:43 2009 # Query_time: 7 Lock_time: 4 Rows_sent: 0 Rows_examined: 0 use ******_joomla; SELECT w.userid, u.username AS username, k.showOnline FROM jos_fb_whoisonline AS w LEFT JOIN jos_users AS u ON u.id=w.userid LEFT JOIN jos_fb_users AS k ON k.userid=w.userid WHERE w.link LIKE '%/forum?mode=getshouts&jal_lastID=1327&rand=110014%' GROUP BY w.userid ORDER BY u.username ASC # Wed Jun 17 06:57:43 2009 # Query_time: 2 Lock_time: 0 Rows_sent: 0 Rows_examined: 0 SELECT c.*, m.id AS mesid, m.subject, mm.catid, m.name AS mname, m.userid, u.username, u.name AS uname FROM jos_fb_categories AS c LEFT JOIN jos_fb_messages AS m ON c.id_last_msg=m.id LEFT JOIN jos_users AS u ON u.id=m.userid LEFT JOIN jos_fb_messages AS mm ON mm.id=c.id_last_msg WHERE c.parent='59' AND c.published='1' ORDER BY ordering # Wed Jun 17 06:57:44 2009 # Query_time: 2 Lock_time: 0 Rows_sent: 0 Rows_examined: 0 use ******_joomla; SELECT DISTINCT thread FROM jos_fb_messages WHERE catid='58' AND hold='0' AND moved='0' AND time>'1213702064' GROUP BY thread # Wed Jun 17 06:57:47 2009 # Query_time: 3 Lock_time: 0 Rows_sent: 0 Rows_examined: 0 use ******_joomla; SELECT DISTINCT thread FROM jos_fb_messages WHERE catid='57' AND hold='0' AND moved='0' AND time>'1213702064' GROUP BY thread # Wed Jun 17 06:57:47 2009 # Query_time: 4 Lock_time: 0 Rows_sent: 0 Rows_examined: 0 SELECT DISTINCT thread FROM jos_fb_messages WHERE catid='66' AND hold='0' AND moved='0' AND time>'1213706932' GROUP BY thread

Please Log in or Create an account to join the conversation.

More
17 years 1 day ago #20270 by xillibit
Replied by xillibit on topic Re:Slow_Queries
Hello,

do you have checked this site : www.joomlaperformance.com/

I don't provide support by PM, because this can be useful for someone else.

Please Log in or Create an account to join the conversation.

More
17 years 1 day ago #20392 by irradiate
Replied by irradiate on topic Re:Slow_Queries
I have had a look at that site before.

There is a SQL query they suggest running in one of the threads and I wondered if that would have any effect on Kunena becasue it is for FB. (I cant seem to load their forum to paste the query here)

Or do you mean use the page cache component?

Cheers

Please Log in or Create an account to join the conversation.

More
17 years 1 day ago #20398 by irradiate
Replied by irradiate on topic Re:Slow_Queries
Just got in....

Will this help???

ALTER TABLE `jos_fb_messages` DROP INDEX `thread` ,
ADD INDEX `thread` ( `thread` , `time` )

Please Log in or Create an account to join the conversation.

More
17 years 1 day ago #20423 by fxstein
Replied by fxstein on topic Re:Slow_Queries
Sorry but no - this will not help.

I am having a serious issue with this slow query log.

If a statement like:
Code:
SHOW TABLES LIKE 'jos_fb_%'

Takes 2 seconds to execute, the shared database host is simply - well to be blunt - JUNK.

That statement should come back in a few dozen milliseconds.

This is a dictionary call that does not even process any data. If this is the baseline for SQL calls, no wonder you are having performance issue. It will make your Joomla site unusable.

Who is your hosting company?

We love stars on the Joomla Extension Directory . :-)

Please Log in or Create an account to join the conversation.

More
17 years 1 day ago #20425 by fxstein
Replied by fxstein on topic Re:Slow_Queries
Ok - I see

I checked them out. For $5.95 per month you get unlimited hosting space and unlimited bandwith.

Sorry to say that but you get what you pay for with some of these hosts.

I certainly could not live with a host where a dictionary lookup takes 2+ seconds.

We love stars on the Joomla Extension Directory . :-)

Please Log in or Create an account to join the conversation.

Time to create page: 0.297 seconds