Are temporary tables more effective than joins?

2003-02-13 Thread Artem Koutchine
I am still stuck with my full text search engine. I have experemented with different approaches to seleting search results and figure out that having temporary tables is about 300 times faster than doing 'inner joins' The table

Re: Are temporary tables more effective than joins?

2003-02-13 Thread harm
. The need for temporary tables is gone as well! Good luck, Harmen (jep, for me the above system is faster (and more flexibel) then mysql 4.0 fulltext searches) ... Also, maybe someone got a link to articles describe effective technique for building full-text search engine? Regards, Artem

Re: Are temporary tables more effective than joins?

2003-02-13 Thread harm
more joins or anything anyway. The need for temporary tables is gone as well! I wonder if there is something bad in creating 5-20 temporary tables every minute or so? AFAIK not. They can make life really easy every now and then :) Threads: 83 Questions: 253527481 Slow queries: 659 Opens

Self Join on temporary tables in MySQL 3.xx

2003-01-29 Thread Ciprian Trofin
A understand that a problem with temporary tables is that you can't do a self-join in MySQL 3.xx using temporary tables. I have a situation that requires exactly this (the alternative is not algorithm-effective). I wonder if the following is a practical solution: to create a copy

replication and if not exists temporary tables

2002-11-28 Thread puckman
thread exiting, replication stopped in log 'master-bin.018' at position 566235 Hypothesis: Could this be down to that temporary tables are connection unique and I'm killing my connection every now and then, and that the slave does not actually create a table on create table if not exists

re: replication and if not exists temporary tables

2002-11-28 Thread Victoria Reznichenko
: patdc Could this be down to that temporary tables are connection unique and I'm killing my connection every now and then, and that the slave does not actually create a table on create table if not patdc exists if the master didn't create it. E.g. master log looks something like: patdc - CREATE

Bug on MySQL4.0.5 with InnoDB+TEMPORARY TABLES ?

2002-11-19 Thread Dyego Souza do Carmo
Hello ! I recent migrate from 3.23 to 4.0.5 version and in my server , i set the Default table type to InnoDB. it works as well, but my temporary tables crashes mysqlserver on truncate command, the logdump is: - start here mysqld got signal 11; This could be because you hit a bug

Re: Bug on MySQL4.0.5 with InnoDB+TEMPORARY TABLES ?

2002-11-19 Thread Heikki Tuuri
Dyego, - Original Message - From: Dyego Souza do Carmo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, November 19, 2002 2:33 PM Subject: Bug on MySQL4.0.5 with InnoDB+TEMPORARY TABLES ? Hello ! I recent migrate from 3.23 to 4.0.5 version and in my

'Persistant' temporary tables

2002-11-18 Thread Dan
Hi all. Hi spam filter. SQL. Query. I'm teaching myself PHP while building a graphing engine for my work. When a client logs in, I want to make a temporary table with the primary keys of the last 3 months worth of their data. I will then be averaging the data and using JPGraph (which is quite

RE: 'Persistant' temporary tables

2002-11-18 Thread Mike Hillyer
- From: Dan [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 16, 2002 4:09 PM To: [EMAIL PROTECTED] Subject: 'Persistant' temporary tables Hi all. Hi spam filter. SQL. Query. I'm teaching myself PHP while building a graphing engine for my work. When a client logs in, I want to make a temporary

Re: Re: 'Persistant' temporary tables

2002-11-18 Thread Nicolas MONNET (Tech)
On Mon, 2002-11-18 at 15:06, [EMAIL PROTECTED] wrote: Your message cannot be posted because it appears to be either spam or simply off topic to our filter. To bypass the filter you must include one of the following words in your message: sql,query If you just reply to this message, and

re: re: [Q] Replication temporary tables (fwd)

2002-10-04 Thread Victoria Reznichenko
Andrey, Thursday, October 03, 2002, 6:08:16 PM, you wrote: Andrey, Tuesday, October 01, 2002, 11:53:41 AM, you wrote: AK Why is temporary tables replecated? AK Is it true? Yes, temporary table are replicated properly since 3.23.29: http://www.mysql.com/doc/en

re: re: [Q] Replication temporary tables (fwd)

2002-10-04 Thread Andrey Kotrekhov
. AK What is the reason to replicate it? Andrey, you can use temporary tables in INSERT ... SELECT statement, in multi-table deletes etc. Thank you. I understand. Best regards. ___ Andrey Kotrekhov [EMAIL PROTECTED] ISP Alkar Teleport

re: [Q] Replication temporary tables (fwd)

2002-10-03 Thread Victoria Reznichenko
Andrey, Tuesday, October 01, 2002, 11:53:41 AM, you wrote: AK Why is temporary tables replecated? AK Is it true? Yes, temporary table are replicated properly since 3.23.29: http://www.mysql.com/doc/en/Replication_Features.html -- For technical support contracts, goto https

re: [Q] Replication temporary tables (fwd)

2002-10-03 Thread Andrey Kotrekhov
äÏÂÒÙÊ ÄÅÎØ. sql Andrey, Tuesday, October 01, 2002, 11:53:41 AM, you wrote: AK Why is temporary tables replecated? AK Is it true? Yes, temporary table are replicated properly since 3.23.29: http://www.mysql.com/doc/en/Replication_Features.html Hmm... What is the reason? If I create

[Q] Replication temporary tables (fwd)

2002-10-01 Thread Andrey Kotrekhov
sql,query Hello, All! Why is temporary tables replecated? Is it true? Best regards. ___ Andrey Kotrekhov [EMAIL PROTECTED] ISP Alkar Teleport ÔÅÌ. +380 562 34-00-44

Re: Temporary tables

2002-09-25 Thread John Coder
make the connection persistent, you can't be sure you'll get the same connection for the other page. In a Web application, I don't think temporary tables are useful if you need them to be shared between pages. One solution I've used is to create an ordinary table with a unique name

Re: Temporary tables

2002-09-25 Thread Keith C. Ivey
the same connection for the other page. In a Web application, I don't think temporary tables are useful if you need them to be shared between pages. One solution I've used is to create an ordinary table with a unique name and then drop it when you're finished with it. [Filter fodder: SQL

Re: Temporary tables

2002-09-25 Thread Paul DuBois
the connection persistent, you can't be sure you'll get the same connection for the other page. Just to confirm: Keith's correct, that's what I was saying. In a Web application, I don't think temporary tables are useful if you need them to be shared between pages. One solution I've used is to create

Temporary tables

2002-09-24 Thread John Coder
hi all I',m wondering if temporary tables stay around longer then the page you use to create them if you create them with a php page. my thoughts were they do but mine doesn't for some reason. I've made a temporary table to query on a page that draws a pie chart out of the data in the temporary

Re: Temporary tables

2002-09-24 Thread Paul DuBois
hi all I',m wondering if temporary tables stay around longer then the page you use to create them if you create them with a php page. my thoughts were they do but mine doesn't for some reason. I've made a temporary table to query on a page that draws a pie chart out of the data in the temporary

Re: Temporary tables

2002-09-24 Thread John Coder
So it's probably the fact that I didn't make the connection persistent that screwed me up sometimes I feel so stupid. hehehe John On Wed, 2002-09-25 at 00:34, Paul DuBois wrote: hi all I',m wondering if temporary tables stay around longer then the page you use to create them if you create

temporary tables

2002-09-19 Thread speters
Is there a way to see what temporary tables exist for the connection. SHOW TABLES doesnt list the temp tables for the connection. Is there some other command i can issue? thanks sean peters [EMAIL PROTECTED] sql, query

Problem with TEMPORARY TABLES

2002-09-05 Thread Stefan Kroon
Dear developer(s), I tried to use MySQLGUI 1.7.5 for Windows, downloaded from the mysql.com-website. I had problems with using temporary tables. First I created such a table. Then I did a INSERT ... SELECT statement to insert rows into this temporary table and then I tried to SELECT from

Re: Problem with TEMPORARY TABLES

2002-09-05 Thread Gerald Clark
Myan GUI based clients use a new connection for each query, and therefore can not be used to test locking or transactions. Stefan Kroon wrote: Dear developer(s), I tried to use MySQLGUI 1.7.5 for Windows, downloaded from the mysql.com-website. I had problems with using temporary tables. First

MySQL Troubles, temporary tables

2002-08-14 Thread Oscar Rylin
-files.   The machines are running apache 1.3.26 w/ PHP 4.2.2 against MySQL 3.23.49a.   When the two plagued machines accept traffic, temporary tables are created in /tmp/ (Filenames such as #sqld65_3_0.MYD, #sqld65_3_0.MYI, #sqld65_4_0.MYD, #sqld65_4_0.MYI)   They are correctly removed after

Temporary tables in binary logs

2002-08-14 Thread Michael McClennen
I just noticed that creations and deletions of temporary tables are recorded in the MySQL binary log. My question is: during replication, are these transmitted and replayed on the slave servers? If so, could someone explain to me why? This would seem to be useless, since the temporary tables

Re: Temporary tables in binary logs

2002-08-14 Thread Paul DuBois
At 16:33 -0400 8/14/02, Michael McClennen wrote: I just noticed that creations and deletions of temporary tables are recorded in the MySQL binary log. My question is: during replication, are these transmitted and replayed on the slave servers? If so, could someone explain to me why? This would

Re: BUG report (CREATE TEMPORARY TABLES problem) 4.0.2/4.0.3-bk snapshot

2002-08-03 Thread Sinisa Milivojevic
Sergey S. Kostyliov writes: Description: Any grant at a tables level make 'CREATE TEMPORARY TABLE' privilege not working ERROR 1142 How-To-Repeat: 1) (under root) mysql GRANT CREATE TEMPORARY TABLES ON *.* TO test_user@localhost IDENTIFIED BY 'test_pass

optimization of select query based on temporary tables

2002-08-02 Thread Artem Mikhailov
hello, i've faced very long execution of a query. query is based on 2 temporary tables, because contains subselects, unsupported by mysql. problem: i try to get the good's statuses in my warehouse, by analyzing all orders made for these goods. tables are as following

BUG report (CREATE TEMPORARY TABLES problem) 4.0.2/4.0.3-bk snapshot

2002-07-30 Thread Sergey S. Kostyliov
Description: Any grant at a tables level make 'CREATE TEMPORARY TABLE' privilege not working ERROR 1142 How-To-Repeat: 1) (under root) mysql GRANT CREATE TEMPORARY TABLES ON *.* TO test_user@localhost IDENTIFIED BY 'test_pass'; Query OK, 0 rows affected

Re: MySQL: Temporary Tables / Subselects

2002-06-20 Thread Galen Wright-Watson
On Thu, 20 Jun 2002, Seth Yount wrote: Hello experts I'm glad you think so highly of us. I am trying to decide which would be the most efficient way of retrieving data, Subselects (nested queries?) or Temporary Tables? Does MySQL even support these yet? MySQL supports temporary

temporary tables...

2002-04-24 Thread Leif Högberg
Hello, Is there a way of checking if a temporary table exists? I've been using show tables like '%tablename%' to see if an ordinary table exists.. but show table wont display temporary tables so this wont work.. any suggestions? // Leif Högberg And so the spam filter will let this through: SQL

temporary tables

2002-04-24 Thread Andrew Hazen
Hi, Does it make sense to use temporary tables as a substitute for Views? Where do I look in the docs for info? Thanks. Mysql. Andrew Hazen, O.C.P. E-Commerce Developer Jatech Solutions Inc. www.jatech.ca Specializing in OSCOMMERCE applications and PHP/MySQL programming

temporary tables select

2002-03-26 Thread Maxim Vysotskiy
Hello mysql, I have strange problem: I create a temporary table (let's say temp_table) with one bigint(20) field. And then, when I try select * from temp_table in same session - mySQL says that this table doesnot exist.. But I cannot create one more in this session - mySQL says that this table

Re: Replication of temporary tables

2002-03-04 Thread Rafael Martinez
On 26 Feb 2002, Arjen Lentz wrote: On Tue, 2002-02-26 at 12:21, Peter Jennings wrote: We have been trying to solve a replication issue related to TEMPORARY tables. Here's the issue Every three hours we run a processX (C++ compiled program) on the Master mysql that goes something

Re: Temporary Tables

2002-02-27 Thread John Fishworld
You have written the following: I understand the principles but WHEN should they be used or considered ?? Any help appreciated tia John sql,query - Before posting, please check: http://www.mysql.com/manual.php

Re: Temporary Tables

2002-02-27 Thread DL Neil
John, You have written the following: I understand the principles but WHEN should they be used or considered ?? Any help appreciated Something of an assumption here that we're all able to recollect an earlier post? Hope I'm on the right wavelength. I use temporary tables to get over

Replication of temporary tables

2002-02-25 Thread Peter Jennings
We have been trying to solve a replication issue related to TEMPORARY tables. Here's the issue Every three hours we run a processX (C++ compiled program) on the Master mysql that goes something like this: CREATE TEMPORARY TABLE tempTableA INSERT INTO tempTableA INSERT INTO normalTableB

Re: Replication of temporary tables

2002-02-25 Thread Arjen Lentz
Hi Peter, On Tue, 2002-02-26 at 12:21, Peter Jennings wrote: We have been trying to solve a replication issue related to TEMPORARY tables. Here's the issue Every three hours we run a processX (C++ compiled program) on the Master mysql that goes something like this: CREATE TEMPORARY

TEMPORARY TABLES

2002-01-07 Thread Walter D. Funk
to paginate the result but when I try to show the second page it seems to be empty. thanks in advance if there are too many simultaneous connections which create several temporary tables is it posible to knock down the server? thanks in advance No, server will not be knocked down by many

RE: TEMPORARY TABLES

2002-01-07 Thread John Lodge
If you are using php, the function you want is mysql_data_seek($result,0) to reset the result set. John Lodge -Original Message- From: Walter D. Funk [mailto:[EMAIL PROTECTED]] Sent: Monday, January 07, 2002 2:04 PM To: [EMAIL PROTECTED] Subject: TEMPORARY TABLES Ive just another

Indexes in temporary tables

2001-12-29 Thread Goran Krajacic
I wonder if mysql uses indexes in temporary tables(when making a join on temp tables etc.)? - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list

Re: Indexes in temporary tables

2001-12-29 Thread Sinisa Milivojevic
Goran Krajacic writes: I wonder if mysql uses indexes in temporary tables(when making a join on temp tables etc.)? MySQL treats temp tables same as normal ones, except when the thread ends ... -- Regards, __ ___ ___ __ / |/ /_ __/ __/ __ \/ /Mr. Sinisa Milivojevic

example using temporary tables

2001-12-10 Thread Bennett Haselton
http://www.mysql.com/doc/A/N/ANSI_diff_Sub-selects.html says that for some sub-queries you can create temporary tables, but I couldn't find any examples in the tutorial that show the use of a temporary table. Are there any? Or, if you're feeling generous, could you just tell me how to do

Re: example using temporary tables

2001-12-10 Thread Dr. Frank Ullrich
Hi, Bennett Haselton wrote: --snip select * from user left join MYTEMP on user.ID = MYTEMP.userid where MYTEMP.userid IS NULL; I bet that this approach will fail because you want the join to show you records that aren't there. But it will show you something, and it will show you more if you

How do temporary tables die?

2001-11-27 Thread Morten Dreier
How do tamporary tables die? Is there a time limit, og do I have to drop them manually? -- Morten Dreier http://www.pobox.com/~mdreier/ - Before posting, please check: http://www.mysql.com/manual.php (the manual)

Re: How do temporary tables die?

2001-11-27 Thread Ryan Fox
How do tamporary tables die? Is there a time limit, og do I have to drop them manually? They are dropped when the client connection that created them disconnects. They can also be dropped manually. Ryan - Before posting,

Re: How do temporary tables die?

2001-11-27 Thread sherzodR
You mean how they are dropped? temp tables are created for each seperate process (session?). So as soon as the client (or you program) ends the session, they should be dropped Morten Dreier wrote: Morten: How do tamporary tables die? Is there a time limit, og do I have to drop Morten: them

Replication and temporary tables

2001-08-20 Thread Mike Wexler
Is there any reason why I shouldn't create temporary tables on a slave server? The tables only last until the client closes its connection, they aren't visible to other clients. I don't do any INSERT INTO permanentTable SELECT ... FROM temporaryTable

Re: Replication and temporary tables

2001-08-20 Thread Jeremy Zawodny
On Mon, Aug 20, 2001 at 02:04:09PM -0500, Mike Wexler wrote: Is there any reason why I shouldn't create temporary tables on a slave server? The tables only last until the client closes its connection, they aren't visible to other clients. I don't do any INSERT INTO permanentTable

Buffering SELECT results without using temporary tables; Locked tables while 'Sending data' revisited

2001-07-18 Thread Martin Ling
We are currently working with a table containing ~650MB of data in 700,000 rows. In attempting to select from this, we would typically find long holdups with process states listed as creating temporary tables. By using SQL_SMALL_RESULT we were able to greatly reduce the time taken for select

How Can I disable the use of temporary tables in a select wuth left join sentence?

2001-07-17 Thread David Tomàs Fargas
the explain of this sentence shows that mysql uses temporary tables, and this was slow (think about the sentence only takes one record in his Limit Clause) of course all the fields used in relations and orders in the sentence are primary keys. SELECT CPOSTAL.* FROM CPOSTAL left JOIN PROVINCI

Re: Temporary tables, BDB tables, and Innobase questions

2001-02-27 Thread Heikki Tuuri
Hi Stephen, 1. Can temporary tables be of type BDB? Now before the question is asked as to why I need transactional support on a temporary table, let me first say that I really don't need it; this is just something we stumbled across during development. If we create a temporary table of type

Temporary tables, BDB tables, and Innobase questions

2001-02-26 Thread Stephen Faustino
1. Can temporary tables be of type BDB? Now before the question is asked as to why I need transactional support on a temporary table, let me first say that I really don't need it; this is just something we stumbled across during development. If we create a temporary table of type BDB

Re: Temporary tables, BDB tables, and Innobase questions

2001-02-26 Thread Jeremy D. Zawodny
On Mon, Feb 26, 2001 at 05:52:09PM -0600, Stephen Faustino wrote: 3. I've read several posts regarding the Innobase tables. Where can I download the source from to start trying to use Innobase rather than BDB tables? They'll be in 3.23.24 when it is released. Or you can pull them from the

RE: Temporary tables

2001-01-27 Thread James R. Butzen
How about CREATE TEMPORARY TABLE tempbills SELECT billdesc, bpamount FROM bill_pay Thanks, James NEBIS Tech. http://www.nebis.com -Original Message- From: Matt Bailey [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 27, 2001 4:49 PM To: [EMAIL PROTECTED] Subject: Temporary tables

<    1   2