Author Topic: Slow Queries  (Read 3308 times)

0 Members and 1 Guest are viewing this topic.

Offline omidkorat

  • Pre-Newbie
  • Posts: 6
    • View Profile
Slow Queries
« on: October 02, 2008, 08:36:10 AM »
My server goes down many times by 4images slow queries.
This is an example of my mysql log:

Code: [Select]
# Query_time: 106  Lock_time: 57  Rows_sent: 14  Rows_examined: 149
use *_img;
SELECT cat_id, COUNT(image_id) AS new_images
  FROM 4images_images
  WHERE image_active = 1 AND image_date >= 1222467568
  GROUP BY cat_id

What should I do?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Slow Queries
« Reply #1 on: October 02, 2008, 02:50:28 PM »
I hate to tell you that, but probably change the server...
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)