How to add an index to a large MyISAM table 10/25/2010
Disclaimer: This worked for me, it might not work for you. Please back up your data before trying any of this. You usually discover the breaking points of a particular schema once the table reaches a certain size. Unfortunately, at that point, ALTER-ing the table to add the appropriate index can take a really, really, really long time, especially if you get stuck in MySQL's dreaded "Repair With Keycache" phase. I recently needed to alter a few tables with >50M rows in as little as time as possible. Here's one solution that goes reasonably fast if you have access to a machine with lots of memory:
CommentsJerry 11/05/2010 07:31
Just a suggestion.
Reply
Thomas 11/05/2010 19:27
I don't know who you are but, nice site.
Reply
02/02/2011 02:24
Well, the shema will only appear if the Mysql goes threw Index.php/.html and reacts to the database.
Reply
Comments are closed. |
AuthorDavid co-founded Weebly, an incredibly easy to use tool that helps millions of people create a professional web site, blog or online store.
He was named to Forbes' 30 under 30 list, is a part-time DJ and has traveled to over 20 countries. Investments include Greplin and Parse.
Twitter UpdatesArchivesDecember 2011 CategoriesAll BlogrollJessica Livingston Flickr Photos |

