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 4075108
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T17:15:20+00:00 2026-05-20T17:15:20+00:00

I have a file with about 40 CREATE INDEX statements in it. I fed

  • 0

I have a file with about 40 CREATE INDEX statements in it. I fed this file to my production database some time ago and it’s currently running the commands.

Not too long ago I accidentally ran a couple slow queries on my production database and now I’m afraid I may have gummed up the works. Normally when I run an unacceptably slow query I restart MySQL, but I’m not sure I want to do that because I don’t know if it’s safe to do that while MySQL is running these CREATE INDEX statements.

For more context, if I run select * from information_schema.statistics where index_name like 'index_%', I usually see a new index show up every few minutes, but it seems to have been stuck at 14 indexes for some time.

Should I restart the server or not?

  • 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-05-20T17:15:21+00:00Added an answer on May 20, 2026 at 5:15 pm

    There is no problem. Use a show create table FOO to see what indexes you are missing and apply them. In the end you can do an optimize table to rebuild all indexes.

    Note that if these 40 create index statements are on the same table then you should definitelly rewrite this (and any further) query into a single one. Otherwise you are waiting 39 times more than you could.

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

Sidebar

Related Questions

I have been thinking about the optimal way to create an XML file using
I have always wondered about this. So many application setups have a zip file
I have a file of about 30000 lines of data that I want to
I have a giant text file (about 1,5 gigabyte) with xml data in it.
I have long HTTP request ( generating large Excel file - about 60K records
I have a CSV file that holds about 200,000 - 300,000 records. Most of
I have a .csv file that is frequently updated (about 20 to 30 times
I have a batch file that installs WinVNC in about 1 second and starts
I have a text file of URLs, about 14000. Below is a couple of
I have two perforce clients (client-a, client-b) that each contain about 40 file specs.

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.