Archives of the TeradataForum
Message Posted: Mon, 05 Sep 2011 @ 11:08:59 GMT
We are facing some issues where trying to update one table from another table (too much time).
We have two tables.
1. Table1 has 10M rows which has start ip and end ip along with some other details.
2. Table2 has 5M rows having a particular ip address.
We need to update Table2 from table1 for the particular ip.
The basic update statement will look like this.
update table2 from table1 set val1=table2.val where table2.ip between table1.startip and table1.endip
I needed some help in tuning this query as it is going into high CPU. Please let me know if you need any further information.
|Copyright 2016 - All Rights Reserved|
|Last Modified: 28 Jun 2020|