cancel
Showing results for 
Search instead for 
Did you mean: 

how can i calculate a COLUMN size in a COLUMN TABLE?

glen_spalding
Participant
0 Kudos

dear all, i thought i knew what i was doing, but i must be missing something, that i hope someone can point out.

I have a table “MYTABLE” with a single column “COL1”, data type CHAR(17).

There are 10,000,000 records in the MYTABLE.

There are 111 distinct records

Based upon my calculations

The Dictionary table should 1,887 bytes (111 * 17)

The Vector table “value id” can be 7 bits to handle 111 unique values, so should be 70,000,000 bits for all 10M records (10,000,000 * 7 ) = 8,750,000 Bytes

Add them together, you get 8,751,887 Bytes or 8,752 KB

So, why do i see 62 KB

looking forward to hearing from you

g

glen_spalding
Participant
0 Kudos

anyone bold enough to have a go at this ?

Accepted Solutions (0)

Answers (0)