MySQL Forums
Forum List  »  Performance

Re: Too Big Created_tmp_disk_tables percent
Posted by: Gregory Jablonski
Date: January 11, 2007 12:53PM

I found this happening for me too when issuing un-limited select distinct queries, but only when issued against some tables, and not others, that I could never figure out the meaningful difference between.

E.g.

SELECT DISTINCT foo, bar FROM qux WHERE ...

would increment created_tmp_tables and created_tmp_disk_tables every time.

But

SELECT foo, bar FROM qux WHERE ...

would increment neither.

And

SELECT DISTINCT foo, bar FROM qux WHERE ... LIMIT 10000

would increment created_tmp_tables but not created_tmp_disk_tables, even if the LIMIT was set greater than the size of the table (for a relatively small table).

Options: ReplyQuote


Subject
Views
Written By
Posted
15613
August 30, 2006 03:47PM
Re: Too Big Created_tmp_disk_tables percent
6211
January 11, 2007 12:53PM


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.