Why does it take so long to rename a column in mysql?

后端 未结 3 704
慢半拍i
慢半拍i 2021-01-08 01:12

I have a 12 GB table full of pictures, I\'m trying to rename the blob column that holds the data, and it is taking forever. Can someone give me a blow by blow account of why

3条回答
  •  一个人的身影
    2021-01-08 01:51

    Yes mysql does a temporary copy of the table. I don't think there's an easy way around that. You should really think about to store the pictures on the filesystem and only store paths in mysql. That's the only way to fasten it up, I guess.

提交回复
热议问题