Solution 1: BAD. It has synchronization issues in which a table is not available, which means other programs must handle this.
Solution 2: The same.
What about:
3: Load the new data into the temporary table, then merge them into the original table.
source
share