MySQL Forums
Forum List  »  General

Re: Loading large tables using the Synonym Switching Technique (SST)
Posted by: Rick James
Date: May 16, 2015 11:23PM

No SST. However, this has the equivalent effect:

1. CREATE TABLE `New` LIKE `Customer`;
2. Load `New` (by whatever means)
3. RENAME TABLE `Customer` TO `Old`, `New` TO `Customer`;
4. DROP TABLE `Old`;

Step 2 is the only long step.
Step 3 is atomic, so you have not down time.
Step 4 can be delayed until you are sure the replacement is OK.

(Perhaps FOREIGN KEYS, Triggers, and Views may be a problem.)

Options: ReplyQuote


Subject
Written By
Posted
Re: Loading large tables using the Synonym Switching Technique (SST)
May 16, 2015 11:23PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.