| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Paul DuBois | Date: | October 3 2000 5:06pm |
| Subject: | Re: MySQL 3.23.25 released | ||
| View as plain text | |||
At 4:56 PM +0200 10-03-2000, Carsten Gehling wrote: >From: "Benjamin Pflugmann" <philemon@stripped> >Sent: Tuesday, October 03, 2000 4:45 PM > >> Maybe I completely misunderstand you, but what is wrong with the plain >> JOIN? >> >> SELECT * FROM table1, table2 WHERE table1.id = table2.id >> >> results in exactly what you ask for, doesn't it? > >Yes, but the performance is poor. The above statement makes a cartesian >product, where every record in table1 is combined with every record in >table2. Only after this cartesian product is completed, are the correct >records selected and returned. What is your basis for saying that? MySQL doesn't do any such thing. If performance is poor, do you have indexes on the id columns in each table? -- Paul DuBois, paul@stripped
| Thread | ||
|---|---|---|
| • MySQL 3.23.25 released | Michael Widenius | 28 Sep |
| • RE: MySQL 3.23.25 released | Sander Pilon | 28 Sep |
| • RE: MySQL 3.23.25 released | Michael Widenius | 29 Sep |
| • RE: MySQL 3.23.25 released | Sander Pilon | 29 Sep |
| • Re: MySQL 3.23.25 released | Carsten Gehling | 3 Oct |
| • Re: MySQL 3.23.25 released | Benjamin Pflugmann | 3 Oct |
| • Re: MySQL 3.23.25 released | Michael Widenius | 4 Oct |
| • Re: MySQL 3.23.25 released | Artem Koutchine | 3 Oct |
| • Re: MySQL 3.23.25 released | Carsten Gehling | 3 Oct |
| • Re: MySQL 3.23.25 released | Dan Nelson | 3 Oct |
| • Re: MySQL 3.23.25 released | Paul DuBois | 3 Oct |
| • Re: MySQL 3.23.25 released | Benjamin Pflugmann | 3 Oct |
| • Re: MySQL 3.23.25 released | Carsten Gehling | 4 Oct |
| • Re: MySQL 3.23.25 released | Carsten Gehling | 4 Oct |
