vmbigot Beginner
Joined: 17 Jun 2004 Posts: 36 Topics: 14 Location: westminster, california
|
Posted: Mon Nov 06, 2006 5:21 pm Post subject: question regarding BLOB storage utilization |
|
|
We are creating tables with BLOB columns along with the appropriate AUX table for each BLOB column. For example, we have defined a BLOB column as 2K in size. See below for the base and AUX table DDL:
Code: |
CREATE TABLE FDBMD.TESTIMAGE
(IMAGE_ID INTEGER GENERATED BY DEFAULT AS IDENTITY
(START WITH 0 ,
INCREMENT BY 1 ,
CYCLE ,
MINVALUE -2147483648 ,
MAXVALUE 2147483647) ,
IMAGE_B BLOB(2K) ,
PRIMARY KEY (IMAGE_ID))
IN FDBMD.FTSBLOB
; |
Code: |
CREATE AUX TABLE FDBMD.TESTIMAGE_IMAGEB
IN FDBMD.FTSBLOBA
STORES FDBMD.TESTIMAGE
COLUMN IMAGE_B
; |
When using Control Center to look at the columns for the base and AUX table, we see column IMAGE_B in the base table FDBMD.TESTIMAGE defined at 2048 bytes. We see column IMAGE_B in AUX table FDBMD.TESTIMAGE_IMAGEB also defined at 2048 bytes.
The question is this. Does DB2 allocate 2048 bytes for each column in the base table and the AUX table or is one a pointer to the other? Or are we completely off base here!?! _________________ Inside every older man is a young boy asking this question. What the heck happened?!? |
|