Guest_imported
New member
- Jan 1, 1970
- 0
We have table called trade which has a partitioned table based on the trade date.
We have at any given point of time only 5 partitions.We have a bit map index on this trade table and there are no other indexes on this table.Every day we load data for the previous day and sometimes we do get back dated trade data in our Database and since table is partitioned based on the trade data the data moves into their corresponding partitions.Usually the load on this table is 4.5 million records. Out of the 4.5 million records around 15,000 records Will be for the back dated trades. Sometimes we do get around 1 lac records for the back traded data.
My problems lies in this cases only. Suppose that the back traded data is 60,000 rec . Today's date Is 26-mar-2002 .we load data for 25-mar-2002 and the no of records for 25-mar-2002 is 4.5 million rec And for the dates from 20-mar-2002, 21-mar-2002, 22-mar-2002 and 25-mar-2002 combined is 60,000 records. Now if the program fails in-between, we do a rerun and the programs deletes data for 25-mar-2002 And the remaining day's data still remain in the corresponding table partition. So if we restart the Job again what happens is that 60,000 lac is inserted again and we do not have any constraints in the table and the index but since the Index being a bit map index the index usage is increasing whenever the restart takes place .I mean if the index Space is 200 MB then if the job fails the space increases to 290 MB and again the job also fails due to space allocation Problem so the dba has to rebuild index again for the back dated
Partitions (20-mar-2002, 21-mar-2002, 25-mar-2002).
Can you suggest any work around for this problem?
I cannot add any constraints on the table and index .The columns of this index are symbol, trade date and market.
One work around for this problem would be to rebuild the index manually once the loading is complete.What if i change the bit map index to normal index what will be performance issues?
We have at any given point of time only 5 partitions.We have a bit map index on this trade table and there are no other indexes on this table.Every day we load data for the previous day and sometimes we do get back dated trade data in our Database and since table is partitioned based on the trade data the data moves into their corresponding partitions.Usually the load on this table is 4.5 million records. Out of the 4.5 million records around 15,000 records Will be for the back dated trades. Sometimes we do get around 1 lac records for the back traded data.
My problems lies in this cases only. Suppose that the back traded data is 60,000 rec . Today's date Is 26-mar-2002 .we load data for 25-mar-2002 and the no of records for 25-mar-2002 is 4.5 million rec And for the dates from 20-mar-2002, 21-mar-2002, 22-mar-2002 and 25-mar-2002 combined is 60,000 records. Now if the program fails in-between, we do a rerun and the programs deletes data for 25-mar-2002 And the remaining day's data still remain in the corresponding table partition. So if we restart the Job again what happens is that 60,000 lac is inserted again and we do not have any constraints in the table and the index but since the Index being a bit map index the index usage is increasing whenever the restart takes place .I mean if the index Space is 200 MB then if the job fails the space increases to 290 MB and again the job also fails due to space allocation Problem so the dba has to rebuild index again for the back dated
Partitions (20-mar-2002, 21-mar-2002, 25-mar-2002).
Can you suggest any work around for this problem?
I cannot add any constraints on the table and index .The columns of this index are symbol, trade date and market.
One work around for this problem would be to rebuild the index manually once the loading is complete.What if i change the bit map index to normal index what will be performance issues?