If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Complex index on large table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-14-07, 01:58
plamensl plamensl is offline
Registered User
 
Join Date: Apr 2007
Posts: 1
Complex index on large table

Hello,
I have a MyISAM table with about 2 billion records and an index on 5 fields.
The insertion of records to this table is very slow, because of the time needed to create the index.
On the other hand i do not need this index while filling the table, only need it at a later time when i do searches.
So i inset records to the table without having the 5-field index and create it later.
My question is which is the fastest way to create this index ?
1. Using alter table ?
2. Dumping the records into a text file and loading them into a blank table with the correct indexes ?
3. There is some other way ?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On