Solved

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

Posted on 2011-02-12
5
1,505 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
[X]
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
  • 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

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…
I have been using r1soft Continuous Data Protection (http://www.r1soft.com/linux-cdp/) for many years now with the mySQL Addon and wanted to share a trick I have used several times. For those of us that don't have the luxury of using all transact…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
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…

730 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