Normalizing an extremely big table

后端 未结 4 1664
你的背包
你的背包 2021-01-11 23:21

I face the following issue. I have an extremely big table. This table is a heritage from the people who previously worked on the project. The table is in MS SQL Server.

4条回答
  •  悲哀的现实
    2021-01-11 23:31

    1. Construct in your head and onto paper a normalized database structure
    2. Construct the database (with indexes)
    3. De-construct that monolith. Things will not look so bad. I would guess that A LOT (I MEAN A LOT) of data is repeated
    4. Create SQL insert statements to insert the data into the database
    5. Go to the persons that constructed that nightmare in the first place with a shotgun. Have fun.

提交回复
热议问题