Keyword

Slow Queriey using K2

  • Hermann Spörl
  • Hermann Spörl's Avatar Topic Author
  • Offline
  • New Member
More
12 years 3 weeks ago - 12 years 3 weeks ago #105691 by Hermann Spörl
Slow Queriey using K2 was created by Hermann Spörl
Hey!

We are using K2 with Joomla 2.5.7 on our rock-webportal www.legacy.de
Our website sometimes runs out of service while we are editing items with K2.

The server log shows some slow queries caused by K2 that push our MySQL-Server to 100% which kills our website for some minutes. The queries often last for about 2-3 minutes.

Any ideas, what can cause this slow queries and how to avoid these embarrassing downtimes?

Thank you for your support in advance!

Regards
Ingo

Here's the server-log for that slow queries:

# Time: 120815 10:21:26
# User@Host: legacy[legacy] @ localhost []
# Query_time: 112.302907 Lock_time: 108.990503 Rows_sent: 10 Rows_examined: 15645
SET timestamp=1345018886;
SELECT i.*, c.name as categoryname,c.id as categoryid, c.alias as categoryalias, c.params as categoryparams FROM legacy_k2_items as i LEFT JOIN legacy_k2_categories AS c ON FIND_IN_SET( c.id , i.catid ) WHERE i.published = 1 AND i.access IN(1,1) AND i.trash = 0 AND c.published = 1 AND c.access IN(1,1) AND c.trash = 0 AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2012-08-15 08:19:34' ) AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2012-08-15 08:19:34' ) AND MATCH(i.title, i.introtext, i.`fulltext`,i.image_caption,i.image_credits,i.video_caption,i.video_credits,i.extra_fields_search,i.metadesc,i.metakey) AGAINST ('secrets* of* the* m*' IN BOOLEAN MODE) AND i.catid IN (20) GROUP BY i.id ORDER BY i.id DESC LIMIT 0, 10;

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

More
12 years 3 weeks ago #105692 by Lefteris
Replied by Lefteris on topic Re: Slow Queriey using K2
Hi. It seems that this is the search query. You can try to enable the Google search integration under K2 parameters to avoid stretching out your server in every search request.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum