Re: Rename of Table That Receives a High Volume of Reads

2007-03-21 Thread Chris Comparini
On Wednesday 21 March 2007 16:31, Paul J. Boyes wrote: > Hello, > > I have a fairly sizeable aggregate table that is built from a large > amount of data that is going to receive a large volume of reads. I am > looking at possibly using the rename to swap the table out regularly > with an updated on

Re: [MySQL] Re: Question on SELECT

2006-12-27 Thread Chris Comparini
On Wednesday 27 December 2006 17:12, Ashley M. Kirchner wrote: > Chris Comparini wrote: > > Try something like this: > > > > select hour(time) as the_hour, avg(temp_f) as average_temp_f > > from data > > where time > now() - interval 24 hour > >

Re: Question on SELECT

2006-12-27 Thread Chris Comparini
On Wednesday 27 December 2006 16:24, Ashley M. Kirchner wrote: >[...] > > I want to display a graph for the last 24 hours by averaging each > hour. Since I get (at most) 60 readings per hour, I need to average > them out to get a number for that hour. Do I have to do this averaging > outside

Re: insert into some table show status like 'foo'

2006-12-15 Thread Chris Comparini
On Friday 15 December 2006 11:53, Steve Edberg wrote: > At 11:12 AM -0800 12/15/06, Chris Comparini wrote: > >Hello, > > > >Say I wanted to log some various server status variables to > >a table. What I'd like to do, ideally, is something like > >this: &g

Re: insert into some table show status like 'foo'

2006-12-15 Thread Chris Comparini
On Friday 15 December 2006 11:23, Mikhail Berman wrote: > Hi Chris, > > If you are running on *Nix you could write a script generally structured > like: > > do > - show status | grep 'what_ever_string_you_want_to_see' > - insert into table > - sleep [seconds] > done > Yes, we are

insert into some table show status like 'foo'

2006-12-15 Thread Chris Comparini
Hello, Say I wanted to log some various server status variables to a table. What I'd like to do, ideally, is something like this: insert into SomeLogTable (Threads) show status like 'Threads_running'; MySQL does not allow this, of course. But, is there some other way to see the "Threads_runn

Re: Question

2006-10-03 Thread Chris Comparini
On Tuesday 03 October 2006 10:57, Feliks Shvartsburd wrote: > Does anybody know how can I see what queries are currently being > executed? From the mysql commandline, use "show processlist;" There is also a program called mytop which shows what's executing. -Chris -- MySQL General Mailing Li