Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8778181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:27:58+00:00 2026-06-13T19:27:58+00:00

I need to extend a column in a quite big table (~90M rows). (MySQL

  • 0

I need to extend a column in a quite big table (~90M rows). (MySQL 5.1, InnoDB)

It’s a varchar(15) column that needs to be extended to varchar(20).
This column is a part of the primary key.

I did some reading in the mysql documents and it looks like a temporary table will be created for that process and at the end there will be a swap done. So it won’t lock the table.

But how will be the index rebuild look? I assume it will have to be modified or not?

Will it be rebuild ‘on side’ and then swapped, so no major impact?

I’m concerned about the performance once the alteration is made.

Cheers!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T19:27:59+00:00Added an answer on June 13, 2026 at 7:27 pm

    nobody seemed to know the answer so I reached out to the MySQL community forum.
    Here’s the thread: http://forums.mysql.com/read.php?22,572693,572865#msg-572865

    In shortcut:

    The index will be re-created during the data copy to the temporary table.
    It will be in place during the table swap.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In mysql I can set default value for column like this: ALTER TABLE <Table>
I need to extend a class, which is encapsulated in a closure. This base
Basically what I need is to do something like this App.CommentView = Backbone.View.extend({ className:
I think this question is quite common. Recently I have got a requirement that
I have a data column that contains a substring similar to this: 'This is
I have data class/table User that has column preferences CREATE table user; ALTER TABLE
I have a SQL Server database that contains an xml column. I need to
I need to implement a feature that would allow users to filter table data
I have a table with about 2,000,000 rows. I need to query one of
I need to extend the Magento shopping cart to include an extra step for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.