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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:19:48+00:00 2026-06-01T06:19:48+00:00

I have a table containing 60 million rows. The structure is like entryid, date,

  • 0

I have a table containing 60 million rows. The structure is like entryid, date, sourceid, detail, views. (entryid, date, sourceid, detail) is the PK, and I also have indexes for each field except views.

The problem is the cardinalities of the four indexes are zero, but I am sure they should not.

I wonder why is that? And does it mean the index doesn’t work?

  • 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-06-01T06:19:49+00:00Added an answer on June 1, 2026 at 6:19 am

    It’s possible that the table statistics have not been updated.

    See this page on optimizing MyISAM tables:

    To help MySQL better optimize queries, use ANALYZE TABLE or run
    myisamchk –analyze on a table after it has been loaded with data.
    This updates a value for each index part that indicates the average
    number of rows that have the same value. (For unique indexes, this is
    always 1.) MySQL uses this to decide which index to choose when you
    join two tables based on a nonconstant expression. You can check the
    result from the table analysis by using SHOW INDEX FROM tbl_name and
    examining the Cardinality value. myisamchk –description –verbose
    shows index distribution information.


    The best way to determine whether an index is helping is to explain a query:

    mysql> explain select 1;
    +----+-------------+-------+------+---------------+------+---------+------+------+----------------+
    | id | select_type | table | type | possible_keys | key  | key_len | ref  | rows | Extra          |
    +----+-------------+-------+------+---------------+------+---------+------+------+----------------+
    |  1 | SIMPLE      | NULL  | NULL | NULL          | NULL | NULL    | NULL | NULL | No tables used |
    +----+-------------+-------+------+---------------+------+---------+------+------+----------------+
    1 row in set (0.00 sec)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a huge table containing 161 million rows. The table structure is entryid(varchar),
We have a large table (450 million rows containing 34 columns of numeric or
I have a table containing reports and the date/time they were created. I'd like
I have a table containing records of the date and time each product was
Lets say I have a table containing several hundred million rows that looks something
I have an as400 table containing roughly 1 million rows of full names /
I have a MyISAM table containing ~20 million rows, and need to increase the
I have a table containing 2 date fields and an identifier (id, fromdate and
My MysQL database contains multiple MyISAM tables, with each table containing millions of rows.
I have a table now containing over 43 million records. To execute SELECT ,

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.