C# and SQLServer normalizing large sets of Urls

后端 未结 2 1233
鱼传尺愫
鱼传尺愫 2021-01-21 16:20

I have many tables in the database that have at least one column that contains a Url. And these are repeated a lot through-out the database. So I normalize them to a dedicated t

2条回答
  •  梦毁少年i
    2021-01-21 17:00

    I think you could use the IGNORE_DUP_KEY option on your index. If you set IGNORE_DUP_KEY = ON on the index of the URL column, the duplicate values are simply ignored and the rest are inserted appropriately.

提交回复
热议问题