Like this way:
delete from `table` where id = 3; insert into table (id, value) values (3, "aaa"), (3, "bbb"), (3, "ccc");
The count of value is hundreds, and a lot of value is the same compared with the last time, only a little records to add or delete.
I use this table to store person's property, and that property is repeated, so I insert many records in the table for one person. When update one's property, some records add or delete, and most records not changed, but when I got the new property set, I don't known which to add and which to delete. So I have to delete all the old records, and then insert the new ones, but it too slow for me, is there a faster way?