Hi,
I have used the ORGANIZE BY DIMENSIONS option for the first time in our data warehouse.
Code:
CREATE TABLE myTable (
ID_COMPANY INTEGER NOT NULL,
YEAR_FISCAL SMALLINT NOT NULL,
ID_CO_ACTIVITY SMALLINT NOT NULL,
.....
constraint pkMYtABLE primary key (ID_COMPANY, YEAR_FISCAL, ID_CO_ACTIVITY)
) ORGANIZE BY DIMENSIONS (YEAR_FISCAL)
;
I noticed that inserting records was slower (8 minutes now vs. 5 min before). I hope the performance gain will follow.
I wonder what we must do with the existing indexes on that table.
CREATE INDEX index1 ON myTable (YEAR_FISCAL);
Can it be omitted totally?
CREATE INDEX index2 ON myTable (ID_COMPANY, YEAR_FISCAL);
What should this become ?
CREATE INDEX index2 ON myTable (ID_COMPANY); ?
I have found some information about MDC tables (Multi-Dimensional Clustering). I assume that, though my table is single dimensional, the same rules apply.
Are there any good sources of information about ORGANIZE BY DIMENSIONS?
This is new territory for me, any help is welcome.