Bug #11023 | Compressed table cardinality is not set | ||
---|---|---|---|
Submitted: | 1 Jun 2005 21:18 | Modified: | 5 Aug 2005 10:07 |
Reporter: | Peter Zaitsev (Basic Quality Contributor) | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: MyISAM storage engine | Severity: | S3 (Non-critical) |
Version: | 4.1.12 | OS: | Any (all) |
Assigned to: | Ingo Strüwing | CPU Architecture: | Any |
[1 Jun 2005 21:18]
Peter Zaitsev
[1 Jun 2005 22:04]
Peter Zaitsev
Oh yes, I skipped one step. You obviously need to run ANALYZE on original table after populating it. The thing is myisamchk -r for some reason does not update statistics for compressed table, while it normally does for normal table. Also ANALYZE table does not work on compressed table saying table is read-only
[1 Jun 2005 22:12]
MySQL Verification Team
Verified on current BK source.
[5 Aug 2005 10:07]
Ingo Strüwing
If you want to have key statistics after a repair, please use the --analyze or -a option to myisamchk, like so: myisamchk -rqa a.MYI This is documented in the reference manual 5.8.4.5. Other Options for myisamchk.