什么是更新多个表的最佳设计模式 [英] What is the best design pattern for updating multiple tables

查看:132
本文介绍了什么是更新多个表的最佳设计模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在执行单个事务时,我要添加/更新的表超过15-20个.我还需要维护每个表的历史记录.对于这种环境,最佳的设计模式是什么?

这些表可能每次都不同.

问候,
Rakhesh R

Hi,

I have more than 15-20 tables to add/update while doing a single transaction. I also need to maintain the history for each table. What could be the best design pattern for this situvation?

The tables could be different each time.

Regards,
Rakhesh R

推荐答案

我会去一个数据仓库,并使用 type 2 数据仓库.
然后,更新将要求您使要更新的行过期,并添加新行以替换过期的行.

提示:
数据安置是一个很大的领域,如果没有先进行彻底的调查,就不要考虑!
I would go for a datawarehouse and use a type 2 datawarehouse.
An update will then require you to expire the row to be updated and add a new row to replace the expired row.

Tip:
Datarehousing is a big big area and not to be contemplated without a thorough investigation first!


这篇关于什么是更新多个表的最佳设计模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆