This approach cannot be used as it's also not safe under high concurrency. We need to use DELETE followed by INSERT