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

  • Home
  • SEARCH
  • 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 6832471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:51:46+00:00 2026-05-26T22:51:46+00:00

I am using MySQl , I have a table named cars which is in

  • 0

I am using MySQl , I have a table named cars which is in my dev_db database.

I inserted about 6,000,000 data into the table (That’s a large amount of data insertion) by using bulk insertion like following:

INSERT INTO cars (cid, name, msg, date) 
VALUES (1, 'blabla', 'blabla', '2001-01-08'),
       (11, 'blabla', 'blabla', '2001-11-28'), 
       ... ,
       (3, 'blabla', 'blabla', '2010-06-03');

After this large data insertion into my cars table

I decide to also optimize the table like following:

OPTIMIZE TABLE cars;

I waited 53min for the optimization, finally it is done and mysql console shows me the following message:

enter image description here

The Msg_text shows me this table does not support optimize… , which makes my brain yields two questions to ask :

1. Does the mysql message above means the 53min I waited actually did nothing useful??

2. is it necessary to optimize my table after large amount data insertion? and why?

  • 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-26T22:51:46+00:00Added an answer on May 26, 2026 at 10:51 pm

    Optimize is useful if you have removed or overwritten rows, or if you have changed indexes. If you just inserted data it is not needed to optimize.

    The MySQL Optimize Table command will effectively de-fragment a mysql
    table and is very useful for tables which are frequently updated
    and/or deleted.

    Also look here: http://www.dbtuna.com/article.php?id=15

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

Sidebar

Related Questions

I am using MySQL and I have a table with an index that is
I am using Mysql database. I have 3 table-: table Column tier_price customer_id,sku(Unique),price,website catalog_product
I am using MySQL v5.1 on Ubuntu machine. I have a database named db_test
I am using mysql 5.0.51b. I have one table named xyz. xyz table has
I have a MySQL table with a datetime column named 'created' which contains the
Suppose I have a MySQL database named DB, and a table named ContactInfo. The
I have a Sqlite 3 and/or MySQL table named clients.. Using python 2.6, How
I am using MYSQL and PHP. I have a table called item. Two of
using php and mysql I have two tables, a users table and a profiles
I am using ruby on rails with a MySQL backend. I have a table

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.