I have 2 databases with identical schemas. One is a master database serving production/marketing purposes (probably 95% SELECTs) and the other is a "slave" and runs SELECTs/INSERTs for orders, customers, etc for a specific micro-site.
The reason for the separation is not all micro-sites will run the same products/specials/coupons etc and an API is in the works, but it won't be completed for some time.
I need to move data from the slave/micro-site database to the master database and maintain key associations.
Example: Master database has orders #1 and #2 (on orders.id let's say) and I have several new orders on my micro-site database that I want to get migrated to the master database so production/manufacturing can begin processing those orders.
How can I move that data using in the easiest way to avoid conflicts/duplicate keys?
Thanks for your time.