Hi All,
I have a update sequel with a like predicate that is updating 20 million records in prod. I have been asked to rewrite the sequel one update at a time removing the like predicate. Is there a more efficient way of doing it ?
db2level= DB2 v9.5.0.8
below is the sequel
update solid set tint = 0 where serialnolike '%-ss27c3-%';
update solidno set published = 0 where solid_ID in (select solid_id from solid where serialno like '%-ss27c3-%');
Help will be much appreciated, this is going into production on 7th of this month
Thanks
Smriti
I have a update sequel with a like predicate that is updating 20 million records in prod. I have been asked to rewrite the sequel one update at a time removing the like predicate. Is there a more efficient way of doing it ?
db2level= DB2 v9.5.0.8
below is the sequel
update solid set tint = 0 where serialnolike '%-ss27c3-%';
update solidno set published = 0 where solid_ID in (select solid_id from solid where serialno like '%-ss27c3-%');
Help will be much appreciated, this is going into production on 7th of this month
Thanks
Smriti