Do you have a question? Post it now! No Registration Necessary. Now with pictures!
March 19, 2007, 3:49 am
rate this thread
records of contact people. I have a table of 50k records doing an
inner join with itself, something like this:
SELECT p1.fields, p2.fields
FROM table AS p1 INNER JOIN table AS p2 ON p1.lastname = p2.lastname
WHERE p1.id <> p2.id AND
The id and name and other criteria fields are indexed as well as they
can be. It works fine as long as I add a LIMIT statement to keep it
down to just 10 or 20 records, but if I take this off, it runs on
forever -- so I can't even tell how many potentail records there will
be. If the table grows to 100k or 200k, it'll only get worse.
So my question is -- are there any better ways to go about this?
- » [mysql 5] How could I move a table from one database to another?
- — Previous thread in » MySQL Database Forum
- » Americanas.com SALDO de TVs Com at 80% de Desconto (29798)
- — Newest thread in » MySQL Database Forum