Re: Query Cache Crashing

2012-10-10 Thread Ben Clewett
Hi Rick, Thanks for the advise. I have now set my query-cache to zero. (I take your point about query cache too large. I understand that a smaller cache size, and the use of the SQL_NO_CACHE and SQL_CACHE directives can be used to control which queries are cached. Therefore trying to get t

RE: Query Cache Crashing

2012-10-09 Thread Rick James
As for the crash, I don't know. Instead, I recommend either shrinking the size (if you use a big QC) or turning it off. This would make the issue go away. ANY modification to a particular table leads to ALL entries in the Query cache being purged. For that reason, we (Yahoo) almost never use

Re: Query Cache questions

2008-09-17 Thread Ananda Kumar
okie..got u On 9/17/08, Bard Aase <[EMAIL PROTECTED]> wrote: > > On Wed, Sep 17, 2008 at 12:42 PM, Ananda Kumar <[EMAIL PROTECTED]> wrote: > >>query_cache_limit is the maximum size of a single resultset in the > >> cache. If your query results in a bigger resultset it will never get > >> into the

Re: Query Cache questions

2008-09-17 Thread Bard Aase
On Wed, Sep 17, 2008 at 12:42 PM, Ananda Kumar <[EMAIL PROTECTED]> wrote: >>query_cache_limit is the maximum size of a single resultset in the >> cache. If your query results in a bigger resultset it will never get >> into the cache even if its room for it in the cache itself. > > > > Even if there

Re: Query Cache questions

2008-09-17 Thread Ananda Kumar
>query_cache_limit is the maximum size of a single resultset in the > cache. If your query results in a bigger resultset it will never get > into the cache even if its room for it in the cache itself. Even if there is room why will it not fit into the cache. On 9/17/08, Bard Aase <[EMAIL PRO

Re: Query Cache questions

2008-09-17 Thread Bard Aase
On Wed, Sep 17, 2008 at 11:54 AM, Uwe Kiewel <[EMAIL PROTECTED]> wrote: > Bard Aase schrieb: >> On Wed, Sep 17, 2008 at 11:37 AM, Uwe Kiewel <[EMAIL PROTECTED]> wrote: >>> Hi, >>> >>> I have two questions regarding the query cache: >>> >>> 1. What is the difference between query_cache_limit and que

Re: Query Cache questions

2008-09-17 Thread Uwe Kiewel
Bard Aase schrieb: > On Wed, Sep 17, 2008 at 11:37 AM, Uwe Kiewel <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I have two questions regarding the query cache: >> >> 1. What is the difference between query_cache_limit and query_cache_size? > > query_cache_limit is the maximum size of a single resultset

Re: Query Cache questions

2008-09-17 Thread Bard Aase
On Wed, Sep 17, 2008 at 11:37 AM, Uwe Kiewel <[EMAIL PROTECTED]> wrote: > Hi, > > I have two questions regarding the query cache: > > 1. What is the difference between query_cache_limit and query_cache_size? query_cache_limit is the maximum size of a single resultset in the cache. If your query re

Re: Query cache contents

2008-09-16 Thread Parvesh Garg
http://rpbouman.blogspot.com/2008/07/inspect-query-cahce-using-mysql.html - parvesh On Wed, Sep 17, 2008 at 1:15 AM, Edson Noboru Yamada <[EMAIL PROTECTED]> wrote: > Hey, Guys > > Is there a way to know what queries are in the query cache? > > > thanks > -- MySQL General Mailing List For list a

Re: Query cache problem with stored procedures

2007-08-19 Thread Baron Schwartz
Hi, Your questions are answered in the manual: http://dev.mysql.com/doc/refman/5.0/en/query-cache-how.html It is a known limitation. Edoardo Serra wrote: Hi all, I'm benchmarking performance improvement with MySQL Query Cache turned on but I'm facing some problem with queries inside store

Re: Query cache question when using HANDLER

2007-06-27 Thread Jim Winstead
On Wed, Jun 27, 2007 at 01:27:24PM +1200, Ian Collins wrote: > Are HANDLER queries cached in the query cache? No, they are not. The query cache only caches the results of SELECT statements. Jim Winstead MySQL Inc. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To

Re: Query Cache Behavior

2007-05-11 Thread Paul J. Boyes
This is our problem: http://bugs.mysql.com/bug.php?id=27210 Thanks, Paul Baron Schwartz wrote: Hi, Paul J. Boyes wrote: Hello, I am hoping to get pointed in the right direction/save some time... I have a db in which some web services are constantly inserting/updating data. However, whe

Re: Query Cache Behavior

2007-05-11 Thread Baron Schwartz
Hi, Paul J. Boyes wrote: Hello, I am hoping to get pointed in the right direction/save some time... I have a db in which some web services are constantly inserting/updating data. However, when I run selects from the command line mysql app, I do not see the changes that these services have m

Re: Query Cache

2006-12-06 Thread Ben Clewett
Chris, Thanks for clearing that up. You are right, I don't want the general log or the mysql shell history. I'm not happy that I can't get at the Query Cache. I am sure there are tools which MySql developers must use to test the cache. I'll have to look at the source code directories...

Re: Query Cache

2006-12-05 Thread Chris
Mohsen Pahlevanzadeh wrote: Ben Clewett wrote: Hi Mohsen, Thanks for the reply. I'm looking in the home directory, as well as the other directories used by mysql and I can't see any files which I do not recognise. (I am UNIX so there are no hidden files.) I am also a little confuses as t

Re: Query Cache

2006-12-05 Thread Ben Clewett
Hi Mohsen, I see, the difference between the home of mysql and the mysql home... As you asked: mysql:*:204:1::/home/mysql:/usr/bin/ksh # ls -la /home/mysql 4 -rwxr- 1 mysqlstaff 254 14 Feb 2005 .profile Regards, Ben Mohsen Pahlevanzadeh wrote: Ben Clewett wrote:

Re: Query Cache

2006-12-05 Thread Mohsen Pahlevanzadeh
Ben Clewett wrote: Hi Mohsen, Thanks for the advise. On my AIX system as root, dot files not hidden. For instance my mysql home directory looks like: drwxr-xr-x 16 mysqlmysql 4096 04 Dec 20:18 . drwxr-xr-x 31 root system 4096 09 Nov 15:12 .. drwxr-xr-x 2 mysql

Re: Query Cache

2006-12-05 Thread Ben Clewett
Hi Mohsen, Thanks for the advise. On my AIX system as root, dot files not hidden. For instance my mysql home directory looks like: drwxr-xr-x 16 mysqlmysql 4096 04 Dec 20:18 . drwxr-xr-x 31 root system 4096 09 Nov 15:12 .. drwxr-xr-x 2 mysqlmysql 409

Re: Query Cache

2006-12-05 Thread Mohsen Pahlevanzadeh
Ben Clewett wrote: Hi Mohsen, Thanks for the reply. I'm looking in the home directory, as well as the other directories used by mysql and I can't see any files which I do not recognise. (I am UNIX so there are no hidden files.) I am also a little confuses as the Query Cache is entirely a

Re: Query Cache

2006-12-04 Thread Ben Clewett
Hi Mohsen, Thanks for the reply. I'm looking in the home directory, as well as the other directories used by mysql and I can't see any files which I do not recognise. (I am UNIX so there are no hidden files.) I am also a little confuses as the Query Cache is entirely a memory structure, do

RE: query cache question

2006-08-30 Thread Mazur Worden, Kathy
Actually no, I'm not using any prepared statements. But thanks for the pointer on that. -Original Message- From: Jay Pipes [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 30, 2006 2:24 PM To: Mazur Worden, Kathy Cc: mysql@lists.mysql.com Subject: RE: query cache question Ah, I

RE: query cache question

2006-08-30 Thread Jay Pipes
; From: Jay Pipes [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 30, 2006 2:12 PM > To: Mazur Worden, Kathy > Cc: mysql@lists.mysql.com > Subject: RE: query cache question > > Please show the output of: > > SELECT @@global.query_cache_type; > > and then: >

RE: query cache question

2006-08-30 Thread Mazur Worden, Kathy
: Jay Pipes [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 30, 2006 2:12 PM To: Mazur Worden, Kathy Cc: mysql@lists.mysql.com Subject: RE: query cache question Please show the output of: SELECT @@global.query_cache_type; and then: SHOW GLOBAL STATUS LIKE 'Qc%'; Thanks! On Wed, 200

RE: query cache question

2006-08-30 Thread Jay Pipes
orden > Prairie Area Library System > > -Original Message- > From: Jay Pipes [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 30, 2006 12:42 PM > To: Mazur Worden, Kathy > Cc: mysql@lists.mysql.com > Subject: RE: query cache question > > Those queries loo

RE: query cache question

2006-08-30 Thread Mazur Worden, Kathy
athy Mazur Worden > Prairie Area Library System > > -Original Message- > From: Jay Pipes [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 30, 2006 12:07 PM > To: Mazur Worden, Kathy > Cc: mysql@lists.mysql.com > Subject: Re: query cache question > > C

RE: query cache question

2006-08-30 Thread Jay Pipes
orden > Prairie Area Library System > > -Original Message- > From: Jay Pipes [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 30, 2006 12:07 PM > To: Mazur Worden, Kathy > Cc: mysql@lists.mysql.com > Subject: Re: query cache question > > Could you post an ex

Re: query cache question

2006-08-30 Thread Philip Hallstrom
What else would prevent queries from getting into the cache? Anything with NOW() in it or any of it's related functions... -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

RE: query cache question

2006-08-30 Thread Mazur Worden, Kathy
e Area Library System -Original Message- From: Jay Pipes [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 30, 2006 12:07 PM To: Mazur Worden, Kathy Cc: mysql@lists.mysql.com Subject: Re: query cache question Could you post an example of a query you are expecting to be cached? On Wed, 20

Re: query cache question

2006-08-30 Thread Jay Pipes
Could you post an example of a query you are expecting to be cached? On Wed, 2006-08-30 at 11:43 -0500, Mazur Worden, Kathy wrote: > Hi, > > > > I just turned on the query cache by modifying its size and limit and > restarting the server. However queries aren't being stored to it: > > > >

Re: query cache about the federated engine

2006-08-02 Thread Michael Loftis
--On August 2, 2006 5:25:51 PM +0800 wangxu <[EMAIL PROTECTED]> wrote: I have a problem about the performance of federated engine. The mysql5.0 reference manual says that the FEDERATED tables do not work with the query cache, aren't they? How about the query cache used by the federated eng

Re: QUERY CACHE TUNING QUESTION

2005-09-16 Thread Gleb Paharenko
Hello. My $0.05 :) If you find out the unique queries (they often contain date and time), add SQL_NO_CACHE to SELECT statement - this will decrease the number of inserts of unique queries. Brent Baisley <[EMAIL PROTECTED]> wrote: > You tripled the amount of memory assigned to the cac

Re: QUERY CACHE TUNING QUESTION

2005-09-15 Thread Brent Baisley
You tripled the amount of memory assigned to the cache, but your Qcache_lowmem_prunes value went up 10x and Qcache_not_cached went up 6x. I would say that you have enough queries that are unique, that most of your queries are getting cached then flushed before the same query comes up again.

Re: Query cache confused when using different client protocols

2005-01-21 Thread Gleb Paharenko
Hello. Yes. See a long discussion at: http://bugs.mysql.com/bug.php?id=6511 "Thomas van Gulick" <[EMAIL PROTECTED]> wrote: > Try this: > > Setup a database server, with MySQL 4.1, with query cache turned on > > Setup a client machine with MySQL 4.0 > Setup a client machine with M

RE: Query Cache

2004-12-07 Thread Alexis Cheshire
t has been returned from the Cache rather than the Direct from Raw Tables. Hope that is a bit clearer Cheers Skex -Original Message- From: Eric Bergen [mailto:[EMAIL PROTECTED] Sent: 07 December 2004 17:30 To: Alexis Cheshire Cc: [EMAIL PROTECTED] Subject: Re: Query Cache 'show'

Re: Query Cache

2004-12-07 Thread Eric Bergen
t; Sent: 07 December 2004 16:50 > To: Alexis Cheshire > Cc: [EMAIL PROTECTED] > Subject: Re: Query Cache > > Skex, > > show status like 'Qcache%'; > Will give you status of the query cache. There isn't a way to tell if a query > result came from the cache

RE: Query Cache

2004-12-07 Thread Alexis Cheshire
] Subject: Re: Query Cache Skex, show status like 'Qcache%'; Will give you status of the query cache. There isn't a way to tell if a query result came from the cache or not other than the time it took to return or if it's the only query ran between checks of the show statu

Re: Query Cache

2004-12-07 Thread Eric Bergen
Skex, show status like 'Qcache%'; Will give you status of the query cache. There isn't a way to tell if a query result came from the cache or not other than the time it took to return or if it's the only query ran between checks of the show status. Neither of these methods is very reliable. Cac

Re: Query Cache

2004-08-08 Thread Terry Riley
Thanks to all who replied. Regards Terry Riley - Original Message - > We have the query cache turned on, and it appears to be working well. > > However, there appears to be no indication in the manual as to the time > that a cached query remains in memory. In the absence of this > in

Re: Query Cache

2004-08-07 Thread Dan Nelson
In the last episode (Aug 07), Paul DuBois said: > At 23:16 +0100 8/7/04, Terry Riley wrote: > > However, there appears to be no indication in the manual as to the > > time that a cached query remains in memory. In the absence of this > > information, is it safe to assume that a cached query remains

Re: Query Cache

2004-08-07 Thread Paul DuBois
At 23:16 +0100 8/7/04, Terry Riley wrote: We have the query cache turned on, and it appears to be working well. However, there appears to be no indication in the manual as to the time that a cached query remains in memory. In the absence of this information, is it safe to assume that a cached query

Re: Query Cache

2004-08-07 Thread Eric Bergen
Yes, a query cache is only removed when one of it's tables is updated or the server is restarted. -Eric On Sat, 7 Aug 2004 23:16 +0100 (BST), Terry Riley <[EMAIL PROTECTED]> wrote: > We have the query cache turned on, and it appears to be working well. > > However, there appears to be no indicat

Re: Query cache and queries with non-english characters

2004-03-02 Thread Egor Egorov
"G B U" <[EMAIL PROTECTED]> wrote: > Recently I've come around that mysql (4.1.0 at least) treats different > queries containing non-english characters (in my case characters from > cp1251 charset) as the same query and therefore returns wrong results. > For example the following queries are regard

Re: Query Cache not being used...

2003-09-24 Thread Matt W
Hi Daniel, Yes, query_cache_type is 1 by default if you don't set it. :-) It's not used by default, however, because query_cache_size is 0. You need to set query_cache_size to 16M, 32M, etc. Hope that helps. Matt - Original Message - From: "Daniel Kasak" Sent: Thursday, September 25,

Re: Query cache query

2003-08-18 Thread Jeremy Zawodny
On Mon, Aug 18, 2003 at 04:51:17PM -0700, Michael S. Fischer wrote: > Jeremy Zawodny writes: > > > Perhaps you could tell us more about the queries that take > > too long. Maybe there are some things you can do to reduce that time? > > You don't want to go there. > > But because you do... :-)

RE: Query cache query

2003-08-18 Thread Michael S. Fischer
Jeremy Zawodny writes: > Perhaps you could tell us more about the queries that take > too long. Maybe there are some things you can do to reduce that time? You don't want to go there. But because you do... :-) As far as I can tell, the queries are as optimized as they're going to get. I'm doi

Re: Query cache query

2003-08-18 Thread Jeremy Zawodny
On Mon, Aug 18, 2003 at 11:53:29AM -0700, Michael S. Fischer wrote: > > I'm using MySQL 4.0.13 for a web application, and one of my queries > is sufficiently complex such that it might take several seconds to > return the results to the user. I'd like to return a "please wait" > page if the query

Re: Query Cache slow downs?

2003-08-04 Thread Dylan Neild
Hey There, Our MySQL database server is: 1. Sun Ultra Enterprise 4500 System Chassis with SBus I/O 4. 6 System Boards, each with 2 UltraSPARC II 400 mhz CPU's and 2 GB's of memory (12 CPU, 12 GB memory) 2. 1 SBus I/O board, with SCSI-2 and dual fibre channel interfaces on it. 3. The SCSI-2 inte

Re: query cache hits not counted in Com_select (fwd)

2003-03-11 Thread Sergei Golubchik
Hi! > In MySQL 4.0, query cache hits are counted in Qcache_hits, but not in > Com_select. The documentation for Com_select implies that they should be > there. Is this the intended behavior, or is it a bug? > > - JD It is intended behaviour. Com_select is incremented each time SELECT query is

re: query cache hits not counted in Com_select

2003-03-10 Thread Victoria Reznichenko
On Saturday 08 March 2003 23:38, John David Duncan wrote: > In MySQL 4.0, query cache hits are counted in Qcache_hits, but not in > Com_select. The documentation for Com_select implies that they should be > there. Is this the intended behavior, or is it a bug? No, it's not a bug, but a known b

Re: query cache

2003-01-30 Thread Dan Nelson
In the last episode (Jan 29), Rusch (ext) Reiner said: > I've got one question which belongs to the new query cache in 4.01. > > I wonder why the cache should be deleted if there's a statement like > update, insert etc. I think it must be considered that there are > possible situations where this

RE: query cache not working with alter table rename as...

2003-01-24 Thread Andrew Braithwaite
Thank you very much for the speedy response. Because of your positive attitude I'm going to try and talk my boss into purchasing a few MySQL licences to help you with development. (the query caching has effectively helped us to reduce hardware costs as 65% of our queries are coming out of memory

Re: Query cache and InnoDB tables?

2001-12-16 Thread Sergei Golubchik
Hi! On Dec 16, Magnus Enbom wrote: > Hi, > > I'm trying out the new query cache features in mysql4. > Are the cache supposed to work with innodb tables? It's not according to the > output of show status, works fine with myisam tables. > I'm ran a 'bk pull -l' this morning and compiled with Suns