UNIONS & 'Got error 12 from storage engine'

2005-04-20 Thread Cliff Daniel
Have a query that consists of 10 unions. For a period of time it will constantly return with an error 12. Moments later it might actually work once or twice. I can find nothing in any logs or whatever. The odd thing is that when it isn't working, simply reducing the unions to 8 or less returns

Re: SLOW 22million rows, 5 hour query?

2004-04-24 Thread Cliff Daniel
http://dev.mysql.com/doc/mysql/en/INSERT_SELECT.html " Do not use DELAYED with INSERT ... SELECT. " With respect to the table structure...can you explain how when you have to read every single row regardless how the structure (assuming you are going down the path of idexes) affects the query? C

Re: SLOW 22million rows, 5 hour query?

2004-04-24 Thread Cliff Daniel
I must have done a poor job at explaining this. I already have all those primary keys, etc. If you are required to do a full table scan on the table, as I am in my example, please explain to me how an index even matters in that case. There is _no_ "where" clause in the query so how will an ind

Re: slow to a crawl

2002-04-09 Thread Cliff Daniel
Benjamin Pflugmann <[EMAIL PROTECTED]> writes: > Hello. > > First, key_buffer=16M seems a bit low for me with 13 million rows > (well, depends on the indexes, and how much free memory you have, of > course). 1 gig, plenty free. > If I am not mistaken, sort_buffer/tmp_table_size are the one mo

slow to a crawl

2002-04-09 Thread Cliff Daniel
I have one query, that basically reads from one table of 13 million rows, groups it by two fields, and inserts into a rollup table. The result set ends up being about 31,000 rows. This runs in about 2 minutes which is acceptable. However, I add an additional group by field, which will probably

hung read() after SIG ALARM + libmysqlclient + Race Condition?

2002-02-20 Thread Cliff Daniel
Hope this makes sense I'm seeing random hung reads() after a mysql insert that appears to be related to a sig alarm race condition. The basic workflow of this program is while (1) recvfrom() /* few hundred packets a sec */ parse packet insert into sql However, once per second a sig a

Bugs? Re: HAVING [cond...] problem

2001-06-14 Thread Cliff Daniel
> Have you tried: > HAVING > ( Avg_Xmit < 28800 ) > AND ( Samples >= 10 ) > > ? > > Cliff Daniel wrote: > > > I'm having some difficulting on 3.23.38, linux x86... When I write > > the following query the HAVING clause is only listening to the 'A

HAVING [cond...] problem

2001-06-13 Thread Cliff Daniel
I'm having some difficulting on 3.23.38, linux x86... When I write the following query the HAVING clause is only listening to the 'AND Samples >= 10' and displas all Avg_Xmit regardless if it's less than or equal to 28800. If I remove the 'AND Samples >= 10' I get the correct results, but of cou