ddl - How long should it take to build a single column index in MySQL for a 100K row table? -


I am trying to create an index with 100K rows at a varchar (20) column, and this is 30 minutes Running for so far On an 8-core i7 processor with 16 GB memory and an SSD drive, I do not understand why it is taking so long.

Any thoughts? I'm a bit new in MySQL, but it's just a basic vanilla index on a relatively small table.

On the same table only takes a few seconds to generate another index.

How does a debug such thing in a MySQL?

What is the total size in the table's memory? If it's large enough that you're getting a lot of hard drive calls, it can still take some time. Also, is this your site when you are doing this?

As far as debugging goes, you can check your SQL process on the system, how many resources it is using.

Finally, do you have to create a multi-column index rather than two single-column indexes?

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -