Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Implementation design advice needed
I have a system that stores data in a propietary format that has a number of
external views and tables in order to transpose the data into client
specific formats. When data is updated according to the header table I need
to update the external tables. I am trying not to impact the performance of
the original upates too much with all the client specific transposing but I
do need the updates to propagate in essentially real time.
I built some logic around setting a timestamp variable in the before update statement trigger of the header table and then in the after update statement I was calling a stored proc with that timestamp variable and the current_timestamp. That allowed me to build a number of delete/insert statements for each external table but I could use an IN clause to capture all the pkeys for each external table that were updated. That cut down on the number of individual delete/inserts for each external table. The data header updates are so different that I can't estimate in advance how many rows are going to be affected.
Bottom line is that this method is lousy to debug, probably not to great for multiple users working on related bits of data at the same time and I'm thinking its a bit to complicated. I can't use materialized views as the select statements are far to complicated and I can't do complete refreshes of the external tables either.
I was looking for some advice on the following thoughts:
Thanks for any input / advice.
Jack Received on Fri Oct 14 2005 - 11:39:56 CDT
![]() |
![]() |