MySQL Error Message
INSERT… SELECT… ON DUPLICATE KEY UPDATE is unsafe
because the order in which rows are retrieved by the SELECT
determines which (if any) rows are updated. This order cannot be
predicted and may differ on source and the replica.