> On May 8, 2020, at 2:37 PM, David G. Johnston <david.g.johns...@gmail.com> > wrote: > > On Fri, May 8, 2020 at 12:49 PM Rob Sargent <robjsarg...@gmail.com > <mailto:robjsarg...@gmail.com>> wrote: > Well as I said, I think you could add a column to info_table > alter table info_table add orig_id int; > update info_table set orig_id = info_table_sid; > > update info_table set info_table_sid = 456 where info_table_sid = 456; > > huh? > > alter table data_table drop reference NOT SQL > alter table data_table make reference to info_table.orig_id NOT SQL > > You don't seem to understand the requirement. The data_table integer value > must be changed - all you are doing is a convoluted column rename on the > table holding the PK half of the relationship. > > David J. > My understanding is the keys in the info_table need to change. That causes the very expensive update in the update in the data tables. No?
- Thoughts on how to avoid a massive integer update. Fehrle, Brian
- Re: Thoughts on how to avoid a massive integer upda... Adrian Klaver
- Re: Thoughts on how to avoid a massive integer ... Fehrle, Brian
- Re: Thoughts on how to avoid a massive inte... Rob Sargent
- Re: Thoughts on how to avoid a massive ... Fehrle, Brian
- Re: Thoughts on how to avoid a mas... Rob Sargent
- Re: Thoughts on how to avoid a... David G. Johnston
- Re: Thoughts on how to avo... Rob Sargent
- Re: Thoughts on how to avo... David G. Johnston
- Re: Thoughts on how to avo... Rob Sargent
- Re: Thoughts on how to avo... David G. Johnston
- Re: Thoughts on how to avo... Rob Sargent
- Re: Thoughts on how to avo... Fehrle, Brian
- Re: Thoughts on how to avo... Rob Sargent
- Re: Thoughts on how to avoid a massive integer upda... Rob Sargent
- Re: Thoughts on how to avoid a massive integer upda... Rob Sargent
- Re: Thoughts on how to avoid a massive integer upda... Peter J. Holzer
- Re: Thoughts on how to avoid a massive integer upda... David G. Johnston