I've got two Tables and wonder why a table with less data can have a bigger keysize?
I've got two Tables and wonder why a table with less data can have a bigger keysize?
Table A size 43,168,0 KiB:
Field A int(11) (PRIMARY AUTOINCREMENT)
FIELD B varchar(255) (UNIQUE)
FIELD C int(11) (INDEX)
FIELD D ENUM(12 FIELDS)
FIELD E DATE (INDEX)
FIELD F DATE (INDEX)
FIELD G DATE (INDEX)
FIELD H DATE (INDEX)
Table B size 52,896,0 KiB:
FIELD A varchar(255) (PRIMARY)
FIELD B int(11) (INDEX)
FIELD C ENUM(12 FIELDS)
FIELD D DATE (INDEX)
FIELD E DATE (INDEX)
FIELD F DATE (INDEX)
FIELD G DATE (INDEX)
The second table is a copy of the first table without the first column and with the primary key on the varchar-field.
So why is the second table with less data so much bigger? Shouldn't it be smaller?
Subject
Written By
Posted
I've got two Tables and wonder why a table with less data can have a bigger keysize?
February 12, 2010 08:24AM
February 13, 2010 10:50AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.