Re: insert or load ? best practices and performance
Posted by:
Rick James
Date: September 21, 2010 03:29PM
Sure, the time will be the same.
I work in a 24/7 environment -- no downtime, no locking tables for more than seconds, etc.
I assume you are on a live system, where you don't want any down time, but you you can avoid writing to the table during the conversion. My approach keeps the old table alive and readable until the RENAME; the RENAME takes zero time; then the new table is live.
If you don't care about staying live, then the neither approach is 'better'.
Also, my approach keeps the old table around (until you DROP it). If the LOAD screws up, you can play RENAME games to get it back.
Subject
Views
Written By
Posted
3589
September 16, 2010 01:19PM
1074
September 17, 2010 09:27AM
989
September 21, 2010 11:16AM
Re: insert or load ? best practices and performance
972
September 21, 2010 03:29PM
1016
September 17, 2010 06:37PM
960
September 20, 2010 06:44AM
902
September 20, 2010 10:43AM
1035
September 20, 2010 12:49PM
1091
September 20, 2010 06:28PM
975
September 21, 2010 06:52AM
942
September 21, 2010 11:07AM
945
September 22, 2010 12:14PM
1021
September 22, 2010 07:20PM
1048
September 23, 2010 08:17AM
885
September 23, 2010 09:27PM