Re: View updating in practice?
Date: 8 Nov 2002 14:09:24 -0800
Message-ID: <ac5bc7c1.0211081409.489d91b5_at_posting.google.com>
Hi Jens,
Sorry, but I did not like this article too much.
I don't think the example is too practical.
Though I can easily imagine a production system with both employee and
basketball player related columns in one table, I would say that's not
the best practice under most circumstances.
I feel an OLTP database might feature a separate table TEAM,
inheriting its PK from EMP. If that's not an option, an INSTEAD OF
trigger could set baskertball-realted fields to NULLS instad of
deleting a record.
Whenever we manage to isolate an OLTP database physical structure from
the
ISTEAD OF triggers provied us a very convenent shortcut in many
situations.
One can easily hit a pedeshtrian when driving, even the safest car in
the world. That might not mean anything bad about the car if the
users, our life gets easier and performance over time usually
inmproves.
(That's less an issue with DB2, because we cannot hint to a DB2
optimizer. Wherever hintsd are allowed, most of them seem to go badly
wrong over time.)
I think it's a very powerful tool whenver we need to hide actual
physicl structure from exposure. Yes it's powerful which means it's
quite easy to abuse it.