MySQL Forums
Forum List  »  Newbie

Query never ends
Posted by: Alejandro Alfonso
Date: February 03, 2009 04:08AM

Hi, I'm new using MySql and have this problem.

I have 2 tables, TableA with 17.000.000 records and TableB with 5.000.000. Both have only one column with phone numbers. What I need to do is scrub the numbers on TableA, from the numbers on TableB, so my query is this

Select TableB.phones
from TableB left outer join TableA on TableB.phones = TableA.phones
where isnull(TableA.phones)

The query start running but never ends... it's been 8 hours. I'm using SQLyog and MONyog, it seems to be running but I checked windows process monitor doesn't seems to take any CPU usage or memory. Is it dead? Or it will take 2 days to end? Do I need to change any config to be able to work with this large DBs?

I'm running MySql 5.1.30 on Win XP Pro SP2, Core2Duo and 2GB RAM

Thanks.



Edited 1 time(s). Last edit at 02/03/2009 04:08AM by Alejandro Alfonso.

Options: ReplyQuote


Subject
Written By
Posted
Query never ends
February 03, 2009 04:08AM
February 03, 2009 09:41AM
February 03, 2009 11:30AM
February 04, 2009 06:22AM


Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.