Editing tag OPCServer property very slow

We have a gateway with about 1M tags on one provider split across 5 opc servers. 4 Kepserver and 1 Autosol. We have a use case for needing to edit the OPCServer property of some tags, everything else stays the same.

Previously we've edited other tag properties like history settings from the script console in chunks of 10-20k with the system.tag.editTags script call returning almost instantly. However, when updating just the OPCServer property they take sometimes 2-3 minutes even to update a few hundred tags at once. Here is the call we have used:
system.tag.editTags(tag_paths, {"OPCServer": TARGET_OPC})

When I watch the internal database, the property change is instant... However the script console sits and thinks for 2-3 minutes. It seems like sometimes it causes our OPC tags to lag or the tag provider to lock up. My guess is the sql update to the internal db is fast but Ignition has to do some sort of initialization of the tags because this property is changed?

If this is the case, would there be any way around this? We need to do this for several hundred thousand tags in a few batches, and each batch is taking several hours.

Try disabling them all first, and re-enabling after. I suspect the unsubscribe from one connection and subscribe to the other connection causes a clash.

That seems like it worked. Thank you for the suggestion. Edits happen within a few seconds now.