how to limit the creation on disk temp tables

2011-09-27 Thread Alexandr Normuradov
Hello List, so far I could not find any answer on how to abort queries that exceed certain size of internal temporary tables. On certain quite often scenarios these internal tables are being converted to Myisam on disk tables. And that creates a high IO depending on situation. Putting tmpdir in

Re: how to limit the creation on disk temp tables

2011-09-27 Thread Johan De Meersman
- Original Message - From: Alexandr Normuradov norma...@gmail.com so far I could not find any answer on how to abort queries that exceed certain size of internal temporary tables. I'm not sure there is. On certain quite often scenarios these internal tables are being converted to

Re: How to View MySQL Temp Files and Temp Tables in Linux

2010-04-08 Thread Johan De Meersman
anyone tell me how to check the status of temp files and temp tables on disk? Tmp files get deleted as soon as MySQL is done with them. Some applications will even delete them while they still have them open as a safety measure. Install the lsof utility, and execute lsof | grep DEL to see delete

How to View MySQL Temp Files and Temp Tables in Linux

2010-04-07 Thread shamu...@gmail.com
Below is my MySQL Server's status and configuration. But I can not see anything under /tmpfs/, it is showing empty to me. here is the result of ls -al drwxrwxrwx 2 mysql mysql60 Apr 7 17:43 tmpfs Could anyone tell me how to check the status of temp files and temp tables on disk? Thanks

Re: Temp tables

2005-10-21 Thread Gleb Paharenko
Hello. Is there anything I can do to get this query to run - is there a size limit for the temp tables that can be tweaked? Have a look here: http://dev.mysql.com/doc/refman/5.0/en/full-table.html Erich C. Beyrent wrote: Hi all, I am running into a brick wall with a query

Temp tables

2005-10-20 Thread Erich C. Beyrent
Hi all, I am running into a brick wall with a query that is running against a MySQL 3x database, and the temp tables are filling up before the query can run. Here is the query: SELECT Avails.ResortID, Inventory.ID as InventoryID, Avails.ID as AvailabilityID, DATE_FORMAT

Re: Why MySQL doesn't cache queries that populate temp tables?

2005-02-14 Thread Gleb Paharenko
Hello. As said at: http://dev.mysql.com/doc/mysql/en/query-cache-how.html A query will not be cached, if it uses TEMPORARY tables. Homam S.A. [EMAIL PROTECTED] wrote: Why MySQL insists on ignoring the query cache whenever I use the same query repeatedly to populate a temp

Why MySQL doesn't cache queries that populate temp tables?

2005-02-11 Thread Homam S.A.
Why MySQL insists on ignoring the query cache whenever I use the same query repeatedly to populate a temp table? So I have: create temporary table MyTable select SQL_CACHE * from SomeTable WHERE (A bunch of criteria) limit 1000; SomeTable is a read-only table. If I issue the query without the

RE: merging of two tables using temp tables???

2004-09-29 Thread bruce
the information isn't available... i'd prefer to do this in mysql if possible, as my gut tells me the operation would be faster/more efficient in mysql, than if i coded this in php/perl... i believe that i's need to create a temp table based on each select, and then some how merge the two temp tables

Re: merging of two tables using temp tables???

2004-09-29 Thread SGreen
available... i'd prefer to do this in mysql if possible, as my gut tells me the operation would be faster/more efficient in mysql, than if i coded this in php/perl... i believe that i's need to create a temp table based on each select, and then some how merge the two temp tables, and finally

RE: merging of two tables using temp tables???

2004-09-29 Thread bruce
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 29, 2004 6:42 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: merging of two tables using temp tables??? If you post your two original SQL statements (the ones you use to build your example tables) I think I can

Re: merging of two tables using temp tables???

2004-09-29 Thread Michael Stassen
on each select, and then some how merge the two temp tables, and finally do a select on the resulting table to get the values i need... looking through google/mysql hasn't shed any light on this one... any ideas/thoughts/comments on how i can do this. -Original Message- From: Jacques Jocelyn

RE: merging of two tables using temp tables???

2004-09-29 Thread bruce
] Subject: Re: merging of two tables using temp tables??? Bruce, My first thought was the LEFT JOIN Jacques suggested. My second thought was that it would be better to just create a single query that gets what you want in the first place. So I looked a little closer, and now I'm confused

RE: merging of two tables using temp tables???

2004-09-29 Thread SGreen
PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: merging of two tables using temp tables??? If you post your two original SQL statements (the ones you use to build your example tables) I think I can help you to merge your results, possibly without the need for temporary tables. Also, what

Re: merging of two tables using temp tables???

2004-09-29 Thread Michael Stassen
bruce wrote: thanks for the reply... and my bad on the diff between the sql. the actual sql had ~100 values. (i simply cut it to demonstrate what i'm trying to do!!) i took the two tables created by the initial sql statements and modified them so that they both had the same structure. i then

merging of two tables using temp tables???

2004-09-28 Thread bruce
if i coded this in php/perl... i believe that i's need to create a temp table based on each select, and then some how merge the two temp tables, and finally do a select on the resulting table to get the values i need... looking through google/mysql hasn't shed any light on this one... any ideas

Re: merging of two tables using temp tables???

2004-09-28 Thread Jacques Jocelyn
Hello bruce, Wednesday, September 29, 2004, 6:57:34 AM, you wrote: b hi b i'd like to be able to merge/combine the two tables so that i get b +--+--++--+---+-+ b | ID | type | status | user | ID| uID | b +--+--++--+---+-+ b

RE: using temp tables...

2004-08-10 Thread Victor Pendleton
CREATE TEMPORARY TABLE table SELECT * FROM source_table ... Query temp table ... DROP TABLE temp_table -Original Message- From: bruce To: [EMAIL PROTECTED] Sent: 8/10/04 12:45 AM Subject: using temp tables... hi... in trying to get a better understanding of temp tables. is there a way

using temp tables...

2004-08-09 Thread bruce
hi... in trying to get a better understanding of temp tables. is there a way to perform a select, to write the results to a temp table, and then use the temp table to perform another operation on the information within the temp table... ie... select * from foo write the results of the select

Re: using temp tables...

2004-08-09 Thread Michael Stassen
Temporary tables work pretty much like regular tables, except they don't last. CREATE TEMPORARY TABLE bar SELECT * FROM foo WHERE ... UPDATE bar SET ... SELECT * FROM foo JOIN bar on foo.id = bar.id WHERE ... Michael bruce wrote: hi... in trying to get a better understanding of temp tables

temp tables rights?

2004-03-30 Thread Keith Keller
Hi all, Suppose I have a user who has been granted select and create_tmp_table, but no other privileges, on a given database. When I attempt to insert into any temporary table, permission is denied, presumably due to the user not having insert on the database, and no entries in mysql.tables_priv

Mysql does io writes when working with temp tables

2004-01-23 Thread mysqlgen
We are running a portal site using mysql and I have been trying to sqeeze some more performance out of our 4-CPU Linix 2.4.20 intel box. Our content is all read-only and we use in-memory temp tables a lot in our queries. I was watching vmstat as I was issuing some queries and I noticed that almost

Re: Ignore Replication Temp Tables

2004-01-21 Thread Tobias Asplund
On Tue, 20 Jan 2004, Todd Burke wrote: Is there any way to disable replication of all temp tables using replicate-ignore-table or some other means? The names of the temp tables are generated randomly by a script. Thanks If you could have all temporary tables starting with tmp or something

Ignore Replication Temp Tables

2004-01-20 Thread Todd Burke
Is there any way to disable replication of all temp tables using replicate-ignore-table or some other means? The names of the temp tables are generated randomly by a script. Thanks Todd -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http

Can't use more than one alias with temp-tables

2003-03-05 Thread correll
: Martin Correll Organization: MySQL support: none Synopsis: Can't use more than one alias with temp-tables Severity: non-critical Priority: medium Category: mysql Class: sw-bug or doc-bug Release: mysql-4.0.11-gamma-max (Official MySQL-max binary) C compiler:2.95.3 C++ compiler

re: Can't use more than one alias with temp-tables

2003-03-05 Thread Victoria Reznichenko
On Wednesday 05 March 2003 16:08, correll at gmx dot de wrote: Description: When using more than one alias on a temporary table I get the error message: ERROR 1137: Can't reopen table: 'first_alias_name' The only thing I found about this error is a fix in version 3.23.36 which

DBI: error 12 from table handler , Can't allocate memory, temp tables, WHY?

2002-11-28 Thread Claus Reestrup
that the problem is the temporary tables. Looking up the error code received by DBI/DBD I get: 'perror 12' Error code 12: Cannot allocate memory Can't allocate memory? Why is that? Below is my server info and my default my-huge.cnf settings. I have tried to set the SET SQL_BIG_RESULT=1 resulting in all temp

Where should I start looking? Relationships? Joins? Temp Tables?

2002-11-15 Thread Chris Couture
Hello, I am trying to create a shopping cart for my company and have hit a snag. I have created a database in MySQL that has several tables. How would I go about displaying the fields from one table based on the fields in the other? Let me explain. I have a table called forder_details which

Re: Replication and temp tables...

2002-11-08 Thread Heikki Tuuri
Jon, - Original Message - From: Jon Frisby [EMAIL PROTECTED] Newsgroups: mailing.database.mysql Sent: Thursday, November 07, 2002 9:39 PM Subject: Replication and temp tables... Using 4.0.2 for both server and client, replicating the following query seems to have caused a crash

Re: Replication and temp tables...

2002-11-08 Thread Heikki Tuuri
Jon, - Original Message - From: Jon Frisby [EMAIL PROTECTED] Newsgroups: mailing.database.mysql Sent: Thursday, November 07, 2002 9:39 PM Subject: Replication and temp tables... Using 4.0.2 for both server and client, replicating the following query seems to have caused a crash

RE: Replication and temp tables...

2002-11-08 Thread Jon Frisby
that happen each day... -JF -Original Message- From: Heikki Tuuri [mailto:Heikki.Tuuri;innodb.com] Sent: Friday, November 08, 2002 12:22 AM To: [EMAIL PROTECTED] Subject: Re: Replication and temp tables... Jon, - Original Message - From: Jon Frisby [EMAIL PROTECTED

Re: Replication and temp tables...

2002-11-08 Thread Heikki Tuuri
Jon, - Original Message - From: Jon Frisby [EMAIL PROTECTED] To: 'Heikki Tuuri' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, November 09, 2002 12:17 AM Subject: RE: Replication and temp tables... Hrm, upon further digging it seems that this may be the offending query

Replication and temp tables...

2002-11-07 Thread Jon Frisby
Using 4.0.2 for both server and client, replicating the following query seems to have caused a crash on the client: CREATE TEMPORARY TABLE tmp1 ( day DATE NOT NULL, campaign_id INT NOT NULL, clicks INT, clicked FLOAT, approved FLOAT, users_raw INT, users_coreg INT,

Re: Re: temp tables

2002-08-21 Thread Egor Egorov
John, Tuesday, August 20, 2002, 5:27:27 PM, you wrote: JW Ta, JW But is it normal to have Temp table bigger than 10meg? And a lot of them? JW Here is my latest data from STATUS JW Created_tmp_disk_tables 46598 JW Created_tmp_tables 87839 JW Uptime 81773 JW And I have set tmp_table_cache to

Re: Re: temp tables

2002-08-21 Thread John Wards
Is their anyway of finding out what queries are causing tmp tables to write to disk? Cheers John Wards - Original Message - From: Egor Egorov [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 21, 2002 3:40 PM Subject: Re: Re: temp tables John, Tuesday, August 20, 2002

temp tables

2002-08-20 Thread John Wards
Hi, MySQL is creating about 50% of temp tables on disk and this is with 10Meg of temp table cache. Is this normal? and sould I up temp table cache further. Below is the output from SHOW STATUS Cheers John Wards SportNetwork.net Var Name Value Aborted_clients 19559

Re: temp tables

2002-08-20 Thread John Wards
tables John, Tuesday, August 20, 2002, 11:55:55 AM, you wrote: JW MySQL is creating about 50% of temp tables on disk and this is with 10Meg of JW temp table cache. Is this normal? and sould I up temp table cache further. Yes it's normal. Since 3.23 MySQL autommatically converts temporary tables

Replication Problem with Temp tables

2002-07-13 Thread Bill MacAllister
Hello, My MySQL slave (3.23.51) stopped with the error: Last_errno: 1146 Last_error: error 'Table 'bts.tmp_na' doesn't exist' on query 'insert into name_address select * from tmp_na ' It is possible that this occured because of inopportune timing in stopping and restarting of the slave.

RE: SubQueries and Temp Tables

2002-06-27 Thread Paul DuBois
to be written in Java before you'll connect to it? -Original Message- From: Paul DuBois [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 26, 2002 5:37 PM To: Dave Morse; 'Arul'; [EMAIL PROTECTED] Cc: 'MySQL' Subject: RE: SubQueries and Temp Tables At 7:16 -0700 6/26/02, Dave Morse

Re: SubQueries and Temp Tables

2002-06-27 Thread Andrew Houghton
] Cc: 'MySQL' Subject: RE: SubQueries and Temp Tables At 7:16 -0700 6/26/02, Dave Morse wrote: MySQL is barely an SQL database - it doesn't support much basic SQL 89 functionality. Can any one throw some light on why professional SQL database developers want to use it for anything but simple

Re: SubQueries and Temp Tables

2002-06-27 Thread Frank Gates
to some. -Original Message- From: Paul DuBois [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 26, 2002 5:37 PM To: Dave Morse; 'Arul'; [EMAIL PROTECTED] Cc: 'MySQL' Subject: RE: SubQueries and Temp Tables At 7:16 -0700 6/26/02, Dave Morse wrote: MySQL is barely an SQL

RE: SubQueries and Temp Tables

2002-06-27 Thread Dave Morse
]] Sent: Thursday, June 27, 2002 9:10 AM To: Dave Morse Cc: 'Paul DuBois'; 'Arul'; [EMAIL PROTECTED]; 'MySQL' Subject: Re: SubQueries and Temp Tables It makes sense to many, or most, I'd say. Oracle produces clients in a variety of languages. So does every major database vendor

Re: SubQueries and Temp Tables

2002-06-27 Thread Gerald Clark
. -Original Message- From: Andrew Houghton [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 9:10 AM To: Dave Morse Cc: 'Paul DuBois'; 'Arul'; [EMAIL PROTECTED]; 'MySQL' Subject: Re: SubQueries and Temp Tables It makes sense to many, or most, I'd say. Oracle produces clients

Re: SubQueries and Temp Tables

2002-06-26 Thread Ralf Narozny
Hiho hiho! Which joins could that be? I think most if not all subqueries should be replacable with joins. Greetings Ralf Arul wrote: Hi All I am currently porting our application from Oracle to MySQL. We have some subqueries in oracle which cannot be ported into MySQL.We even tried some

Re: SubQueries and Temp Tables

2002-06-26 Thread Arul
Agreed Ralf... Not all SubQueries can be replaced by Joins.. Thats why we have planned for Temp Tables.. Any ideas on it.. - Original Message - From: Ralf Narozny [EMAIL PROTECTED] To: Arul [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; MySQL [EMAIL PROTECTED] Sent: Wednesday, June 26, 2002 3

RE: SubQueries and Temp Tables

2002-06-26 Thread Dave Morse
-Original Message- From: Arul [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 25, 2002 9:05 PM To: [EMAIL PROTECTED] Cc: MySQL Subject: SubQueries and Temp Tables Hi All I am currently porting our application from Oracle to MySQL. We have some subqueries in oracle which

Re: SubQueries and Temp Tables

2002-06-26 Thread Alexander Barkov
It's hard to give a common suggestion which is suitable for all cases. We need to know the exact queries being executed. Arul wrote: Agreed Ralf... Not all SubQueries can be replaced by Joins.. Thats why we have planned for Temp Tables.. Any ideas on it.. - Original Message

RE: SubQueries and Temp Tables

2002-06-26 Thread Paul DuBois
]] Sent: Tuesday, June 25, 2002 9:05 PM To: [EMAIL PROTECTED] Cc: MySQL Subject: SubQueries and Temp Tables Hi All I am currently porting our application from Oracle to MySQL. We have some subqueries in oracle which cannot be ported into MySQL.We even tried some joins which

Re: sporadic very large temp files (temp tables)

2002-06-07 Thread Egor Egorov
Greg, Thursday, June 06, 2002, 6:42:09 PM, you wrote: GT help please. I am seeing very disturbing, very large, and very sporadic GT temporary files appear in the MySQL $tmpdir location. Here's a brief listing: GT-rw-rw1 mysqlmysql6488514560 Jun 6 14:14 #sql4f3_1f8aa_2.MYD

InnoDB and temp. tables

2002-05-27 Thread Bill Easton
I note by experiment (by observing the content of the binary log) that I get the following actions when trying to use a temporary table during a transaction: -- on creating a temporary table, the create (only) is committed -- on dropping a temporary table, the current transaction is committed

GRANT create/drop for temp tables

2002-03-25 Thread Ray Rodriguez
This is either a mysql feature request (who would I send it to?) or a question. I've looked at the documentation and could not find a way to do this. Is there a way to grant create/drop access specifically for temporary tables? I have a situation where I need to use a create temporary..select

Re: GRANT create/drop for temp tables

2002-03-25 Thread Paul DuBois
At 18:28 -0500 3/25/02, Ray Rodriguez wrote: This is either a mysql feature request (who would I send it to?) or a question. I've looked at the documentation and could not find a way to do this. Is there a way to grant create/drop access specifically for temporary tables? I have a situation

v3.22.32 and temp tables

2002-02-19 Thread Brian Warn
Hi, I want to build a temp table which I can query to sum values. If I try create temporary table tbl_name select some_query_here, then I get an error that tells me that I have an error with my sql syntax near 'temporary table tbl_name select some_query_here'. Am I correct in thinking that this

RE: v3.22.32 and temp tables

2002-02-19 Thread Rick Emery
From the manual: In MySQL Version 3.23, you can use the TEMPORARY keyword... Sorry, mate, you are SOL until you upgrade -Original Message- From: Brian Warn [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 12:09 PM To: 'MySQL List' Subject: v3.22.32 and temp tables Hi, I

question about temp tables

2001-11-30 Thread tung teck lee
= max_heap_table_size=64M Anything I have done wrong or should look into? Anyway to see what temp tables are being created and what for? regards, Teck Lee - Before posting, please check: http://www.mysql.com/manual.php (the manual

[replication and using temp tables]

2001-11-16 Thread s . meyer
SQL_SLAVE_SKIP_COUNTER=1;slave start; How-To-Repeat: using temp tables in stateme Fix: no idea Submitter-Id: Stefan Meyer Originator:[EMAIL PROTECTED] Organization: MobilCom Communications GmbH MySQL support: none Synopsis: Replication Problem Severity: non-critical Priority

BINLOG and temp tables

2001-10-30 Thread Steven Roussey
Hi! Is there a way to create a temp table and _not_ have it logged to the binlog? We use temp tables only to increase the speed of certain types of selects (we have discussed the type of select that causes this problem on this list already), and don't want them rerun when we might have

Strange entry in binary-log (replication temp tables)

2001-10-19 Thread Bartlomiej Papierski
Hi, We currently use in one of our projects 3.23.41 with two-way replication as follows: |--| GPW replication |---| | MySQL 1 | -- | MySQL 2 | |GPW Master| |GPW

Re: problems with temp tables

2001-07-28 Thread Jeremy Zawodny
On Fri, Jul 27, 2001 at 09:01:09PM -0400, Nick Seidenman wrote: I'm seeing two problems with temporary tables: 1) I keep getting table is full errors. I set sql_big_tables to one, as the docu directs, but this doesn't seem to have had any effect. Do you have sufficient disk space?

problems with temp tables

2001-07-27 Thread Nick Seidenman
I'm seeing two problems with temporary tables: 1) I keep getting table is full errors. I set sql_big_tables to one, as the docu directs, but this doesn't seem to have had any effect. 2) temp tables seem to get fouled up in replication. The docu says temp tables replicate properly

Re: temp tables lock unrelated tables

2001-01-20 Thread Sinisa Milivojevic
Michael Griffith writes: My TMPDIR is actually not separate from the data. There is plently of disk space. In fact, thinking it was some sort of RAM problem I reduced the size of the database by almost 30% with no change in performace. You say this should not happen, yet as I've been

Re: temp tables lock unrelated tables

2001-01-20 Thread Sinisa Milivojevic
Michael Griffith writes: Cacheing before writing sounds like exactly the type of thing that would explain the problem. However, I'm on FreeBSD (Sorry, didn't give too many details). Anybody know if there is something similar in to bdflush BSD? I did run iostat to monitor the the

temp tables lock unrelated tables

2001-01-19 Thread Michael Griffith
Using SHOW PROCESSLIST or mysqladmin proc Every time a table reports status of 'copying to tmp table' all other UPDATE queries are locked, even in unrelated tables. For example: Query #1: SELECT * FROM a JOIN B WHERE Status: copying to tmp table Query #2: UPDATE C SET x=x+1 WHERE..

Re: temp tables lock unrelated tables

2001-01-19 Thread Sinisa Milivojevic
Michael Griffith writes: Using SHOW PROCESSLIST or mysqladmin proc Every time a table reports status of 'copying to tmp table' all other UPDATE queries are locked, even in unrelated tables. For example: Query #1: SELECT * FROM a JOIN B WHERE Status: copying to tmp table

Re: temp tables lock unrelated tables

2001-01-19 Thread Michael Griffith
My TMPDIR is actually not separate from the data. There is plently of disk space. In fact, thinking it was some sort of RAM problem I reduced the size of the database by almost 30% with no change in performace. You say this should not happen, yet as I've been searching the mailing list there's

temp tables lock unrelated tables

2001-01-19 Thread Michael Griffith
Earlier I posted a message about SHOW PROCESSLIST reporting queries "locked" whenever another thread is "Copying to tmp table" After many more hours of diagnosis, the actual problem is somewhat different: MySQL does report other processes as locked. But they do not wait until the temp table

Re: temp tables lock unrelated tables

2001-01-19 Thread Gerald L. Clark
Michael Griffith wrote: Earlier I posted a message about SHOW PROCESSLIST reporting queries "locked" whenever another thread is "Copying to tmp table" After many more hours of diagnosis, the actual problem is somewhat different: MySQL does report other processes as locked. But they do