TechSpott

Go Back   TechSpott > Webmasters > Database Management > MySQL
MySQL Forum dedicated to the world's most popular open source database engine.
Reply
 
Thread Tools Display Modes
Old April 20th, 2010, 06:23 PM   #1 (permalink)
Jim
TechSpott Newbie
 
Join Date: Apr 2010
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Jim is an unknown quantity at this point
Default Will I blow up my mySQL server and open a space-time portal to the 9th

dimension if I...? change an existing compound key from INDEX to UNIQUE on a table that contains over 32 million rows?

Long winded explanation below:

The table is updated from delimited text files using LOAD DATA INFILE. Due to a harware issue, a few files loaded partially, so I have to figure out a way to load the missing records (over 200,000) without creating duplicates of the ones that did load.

There are many ways to do this, but my quickest option is to add the REPLACE keyword to the LOAD DATA INFILE command, to make it overwrite existing records rather than duplicating them, and then reload the files. This only works on tables which contain a unique key, and this one doesn't.

I'm just worried that the simple act of changing the index type on one of the keys will bring about armageddon due to the incredible size of the table.
原帖地址: TechSpott http://www.techspott.com/mysql/8027-will-i-blow-up-my-mysql-server-open-space-time-portal-9th.html#post8922

Any advice is appreciated!

Thanks.
Stephan W: Thanks for the info. I hadn't considered the size of the table in MB. It's only around 6-7 despite the millions of records. In light of that, do you think it's safe to change that key?
Never mind. I just realized this approach won't work. Thanks for the answers though.
Jim is offline   Reply With Quote Share with Facebook
Reply

Bookmarks

Tags
9th, blow, mysql, open, portal, server, spacetime


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
77 Windows 7 Tips amitash Windows 7 2 August 27th, 2010 02:54 AM
Every time I open Internet Explorer I have to uncheck the proxy server box.? Leonid Browsers 0 April 4th, 2010 01:53 AM
I cannot open localhost on my computer. I just installed apache web server 2.2? Effi1 Apache 0 April 2nd, 2010 12:51 AM

Contact Us - Home - Archive - Privacy Statement - Top - Copyright © 2009-2010, TechSpott - All times are GMT -4. Time is 07:19 AM

Powered by vBulletin® Copyright © Jelsoft Enterprises Ltd. :: SEO by vBSEO
Powered By DeTrax Media Co.