Re: adding an index to a very large table (hours and hours??)

2007-08-11 Thread Baron Schwartz
Actually, that buffer is only for sorting queries that use an ORDER BY. Only MyISAM tables can build an index via sorting, and the configuration parameter for that is myisam_sort_buffer_size. If the table is InnoDB, let it complete, no matter how long it takes. If you kill it, it will have to

Re: adding an index to a very large table (hours and hours??)

2007-08-11 Thread Ananda Kumar
Hi Before creating the index. set this at you mysql prompt. set sort_buffer_size=1; This will enable ordering of index happen in the memory and index creation will be faster. regards anandkl On 8/11/07, Mike Zupan <[EMAIL PROTECTED]> wrote: > > Yes it will take a long time depending o

Re: adding an index to a very large table (hours and hours??)

2007-08-10 Thread Mike Zupan
Yes it will take a long time depending on the size of the index also On 8/10/07, x x <[EMAIL PROTECTED]> wrote: > > I'm attempting to add an index to a table with 70 > million rows. > > DB server running on a reasonably fast Intel Mac on a > relatively slow drive. > > Should this take hours to com

adding an index to a very large table (hours and hours??)

2007-08-10 Thread x x
I'm attempting to add an index to a table with 70 million rows. DB server running on a reasonably fast Intel Mac on a relatively slow drive. Should this take hours to complete ? So far it's taken 5 hours and counting. I'm afraid it's going to destroy my drive ! ___