【计算机英语】As I see it, try to design for as much proactivity as possible...

来源:百度知道 编辑:UC知道 时间:2024/05/25 02:37:21
As I see it, try to design for as much proactivity as possible (or as appropriate) so that the number of exceptions from the database will be extremely few. For those that are still possible, be prepared to deal with them one by one in code, or be prepared to roll back the transaction, toss out the Domain Model changes, and start all over again. A bit drastic, but that's the way I see it. The key to all this is design, so you make the problem as small as possible.

拜托不要用电脑翻译!

就我来看,尽可能的试着设计主动性以至数据库的大量的异常情况将会非常少。如果可能的话,准备对他们一个一个用代码处理,或重新运行系统,丢弃模式更改的域名,重新启动。有点极端,但这种方法可行。关键是设计,让你把弄得问题尽可能的小。