Hello,
I have two tables with list of urls fetched from different sources.
I want to find the common entries and put them in separate table.
This is what I'm doing:
- find md5 hash of url while fetching them.
- Store them in a column.
- I fetch one table as an array, run a loop through it and insert the values from other table where md5 hash is the same.
EDIT: Should I strip the urls of "http://' and 'www.'
I want to know any other method, which is better and faster, using which I can perform the above.
I am using PHP + MySQL