Quantcast
Channel: MySQL Forums - MySQL Workbench
Viewing all articles
Browse latest Browse all 3737

Update query performance (1 reply)

$
0
0
Hi everybody,

this is my first post on this forum but i hope my question will help other developer.

I'm working on a amazon AWS linux machine, i've a big database with many table.

One of those have 1,2 million rows and another 600.000, i want to update IDCOMPANY field on first table with a value obtained from the second one using a matching field.

My query is:

UPDATE detaildata
INNER JOIN company
ON detaildata.col2=company.globalid
SET detaildata.companyid =company.id


I tryed but seems that it take a lot of times (more than 2 days), in mysql process list i can see the process loked, there is something wrong?

What's the better way to do it?

Thanks a lot

Viewing all articles
Browse latest Browse all 3737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>