Unix Technical Forum

optimizing a 10-hour process

This is a discussion on optimizing a 10-hour process within the MySQL forums, part of the Database Server Software category; --> I have a lengthy process that consists of these 4 steps: 1) Create a new table and load data ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-28-2008, 04:40 AM
Slawomir Lisznianski
 
Posts: n/a
Default optimizing a 10-hour process


I have a lengthy process that consists of these 4 steps:


1) Create a new table and load data into it using LOAD DATA INFILE. The
input file is about 300gb (ASCII). The resulting myisam file is ~100gb
(unpacked).

2) Create two indexes using ALTER TABLE.

3) Pack the table using myisampack -- this wipes the index file from step 2

4) Re-create indexes using myisamchk


Is there a way to skip step 2 and create indexes once, after the table
is packed?


Cheers,
Slawomir
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:43 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com