Re: Performance problem - MySQL at 99.9% CPU

2008-01-08 Thread Kevin Hunter
At 3:51p -0500 onGunnar R. wrote, On 01/08/2008 03:51 PM: That tool tells me 100% of the data is read from memory, not a byte from disk... would there still be any point in getting more memory? Any suggestions to where to go from here? I dunno. My hunch is that could do some query optimizat

Re: SQL help/problem with timestamped data differences

2008-01-08 Thread Dan Buettner
Mark, is the 'secs' column the offset from the minimum value of the timestamp column? If so, you might try something like this: SELECT UNIX_TIMESTAMP(MIN(timestamp)) INTO @min_timestamp FROM my_table; SELECT uid, timestamp, UNIX_TIMESTAMP(timestamp) - @min_timestamp AS secs FROM my_table ORDER B

Re: Performance problem - MySQL at 99.9% CPU

2008-01-08 Thread Kevin Hunter
At 6:47a -0500 on 08 Jan 2008, Gunnar R. wrote: Concerning slow queries, it seems there's a couple of different queries that's being logged. I haven't tried it yet, but this recently went by on debaday.debian.net: mytop: a top clone for MySQL http://debaday.debian.net/2007/12/26/mytop-a-top-

SQL help/problem with timestamped data differences

2008-01-08 Thread mark carson
Hi All I have the following data example UID Timestamp 123456 20071201 12:00:01 123456 20071201 12:00:06 987654 20071201 12:00:01 987654 20071201 12:00:09 etc I need : UID Timestamp secs 123456 20071201 12:00:01 000

left join problem

2008-01-08 Thread Wes Hegge
I am attempting to left join several tables. This was working at one time but has seemed to stop just recently. I have checked and installed the lastest version of mysql via Debian Etch apt-get. I am running version 5.0.32. I have simplified the example down to just 3 tables but the problem exi

Re: MySql CPU 100%

2008-01-08 Thread Barry Newton
Nik wrote: I've posted below the output of STATUS and SHOW GLOBAL STATUS. Any and all comments would be much appreciated as to how we can get performance back on track. Wow. . .200 logins? 511 open tables? 277+ million sort rows? On a single PC host? And you're complaining about perform

MySql CPU 100%

2008-01-08 Thread Nik
We are using MySql as the backend to our Web (Apache) based Pool website. Over the last 6-9 months the MySql process has become busier and busier, to the point now where we see definative slowdowns to the Application, as experienced by users - in terms of latency. Using TOP, I can see that mysql p

query_cache TimeToLive

2008-01-08 Thread Thomas Raso
Hi all, how mysql manage the query_cache TimeToLive (live) and how can I change it ? Thanks

RE: group_concat display limit

2008-01-08 Thread Rolando Edwards
The variable 'group_concat_max_len' has a default of 1024 (1K) Add this to you're my.cnf to make it 8K [mysqld] group_concat_max_len=8192 -- Another way without altering 'group_concat_max_len' is To manually concatenate the string pieces with blanks in between The only limit is

Re: Performance problem - MySQL at 99.9% CPU

2008-01-08 Thread Gunnar R.
Thank you Erik! HDs are OK, a couple of GB free. Not that it's a lot, but I can't imagine it being too low for MySQL.. I'm aware memory is a bit low, but RAMBUS chips are hard to come by. They don't have them in stock anywhere anymore. Also they are quite expensive. It's almost like you could've

Re: Performance problem - MySQL at 99.9% CPU

2008-01-08 Thread Gunnar R.
Thank you Erik! HDs are OK, a couple of GB free. Not that it's a lot, but I can't imagine it being too low for MySQL.. I'm aware memory is a bit low, but RAMBUS chips are hard to come by. They don't have them in stock anywhere anymore. Also they are quite expensive. It's almost like you could've