Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to increase speed "SHOW TABLE STATUS FROM table" in a innodb table

Posted on 2011-02-12
5
1,504 Views
Last Modified: 2012-05-11
When I launch SHOW TABLE STATUS FROM tablename, in a innodb table, the results take more than 1 minute.

How can I increase the speed of this sentence?
0
Comment
Question by:lnrivera
  • 3
  • 2
5 Comments
 
LVL 20

Expert Comment

by:Muhammad Wasif
ID: 34882398
Normally for a single table you do
SHOW TABLE STATUS LIKE 'table'

Open in new window

Did you try this?
0
 

Author Comment

by:lnrivera
ID: 34882434
Yes, but the table is a innodb and take a lot of time to resolve it
0
 
LVL 20

Expert Comment

by:Muhammad Wasif
ID: 34882457
This slowness seems to be due to transactions or READ LOCKs as mentioned here.

Which MySQL version do you have?
0
 

Author Comment

by:lnrivera
ID: 34882630
We have 5.5, and the "show table status" are running in a server without any another connections (Only for test), the question is that the table is a big innod table with thousands of records
0
 
LVL 20

Accepted Solution

by:
Muhammad Wasif earned 500 total points
ID: 34882683
What information do you need in SHOW TABLE STATUS output? I believe you can get the same information from INFORMATION_SCHEMA.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I use MySQL for many of my development projects in a Windows environment. To manage my databases (and perform queries) for years I used a tool called MySQL administrator.  This tool has since been replaced by MySQL Workbench. So I decided to m…
Foreword This is an old article.  Instead of using the MySQL extension that was used in the original code examples, please choose one of the currently supported database extensions instead.  More information is available here: MySQLi / PDO (http://…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question