I have the 3 following tables in a MySQL 4.x DB :
As you can see, the schema is really simple but the problem is the amount of data in these tables.
Here is the query I'm running :
SELECT CONCAT(H.name, P.name)
FROM hosts AS H
INNER JOIN urls as U ON H.id = U.host
INNER JOIN paths AS P ON U.path = P.id;
This query works perfectly fine, but takes 50 minutes to run. Does anyone have any idea about how I could speed up that query?
Thanks in advance. Nicolas
Perhaps you should include a WHERE clause? Or do you really need ALL the data?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With