kietdlam
kietdlam

Reputation: 185

MySQL add index on relatively big table (InnoDB)

I have a relatively big InnoDB table (~20m rows) and I want to add an index to a column.

The table is being read from and written to frequently, so I want the table to still be usable while the index is being added.

How can I achieve this?

I currently see two options:

Is there a better way?

Thanks :)

MySQL version: 5.0.51

Upvotes: 3

Views: 991

Answers (1)

Mark
Mark

Reputation: 8441

2nd option would be great but how can you achieve this? I recommend MySQL Workbench

Upvotes: 2

Related Questions