MySQL Forums
Forum List  »  General

Re: Sending data in processlist
Posted by: Rick James
Date: December 26, 2014 11:56AM

SHOW VARIABLES LIKE 'query_cache%';

Do not set query_cache_size to a large value. I recommend no more than 50M.
If you still have the problem at a smaller size, then set both of these:
query_cache_type = 0
query_cache_size = 0

To verify that the SELECT is doing what I expect, please provide the output from
EXPLAIN 
SELECT  b.shutDownFlag, b.time_of_ping, b.observedstate, b.simulatedstate
    FROM  
      ( SELECT  max(time_of_ping) AS last_ping
            from  test100
            where  !(observedstate=4  and  powercost=0)
      ) AS a
    JOIN  test100 AS b ON b.time_of_ping = a.last_ping ;

How many tables do you have? It sounds like you have lots of test### tables??

What values do you get for
SHOW VARIABLES LIKE '%open%';
In particular, do you have more test% tables than @@table_open_cache ?
If so, this could lead to a lot of opening/closing of tables.

If you would like, provide the following 3 things, and I will rummage around for other things that could be troublesome:
How much RAM;
SHOW VARIABLES;
SHOW GLOBAL STATUS;

Options: ReplyQuote


Subject
Written By
Posted
December 19, 2014 07:55AM
December 20, 2014 12:03AM
December 20, 2014 05:33AM
December 20, 2014 10:18AM
December 26, 2014 02:23AM
Re: Sending data in processlist
December 26, 2014 11:56AM
December 29, 2014 02:59AM
December 29, 2014 01:16PM
December 30, 2014 07:02AM
December 30, 2014 02:55PM
January 01, 2015 01:55AM
January 01, 2015 08:30PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.