VB 版 (精华区)
发信人: Friend (沙漠绿洲), 信区: VisualBasic
标 题: Avoiding the Top-Ten Design Mistakes(6)
发信站: 哈工大紫丁香 (Thu Jun 24 10:05:19 1999), 转信
发信站: 饮水思源站 (Sun May 30 15:18:18 1999) , 站内信件
6) The design didn't account for everyone wanting to use the
same clerk. Imagine a fast-food restaurant designed to deal
with dozens of people at once, but with only one cash register
that all of the teenagers behind the counter have to share.
This same problem is often duplicated in client/server designs
when insert/update activity is focused on the pages containing
the most current rows. This is the "hot-spot" problem many of
us have seen. Unless you deal with this problem by adding a few
more clerks, your system is destined to bog down as individual
applications vie for the most often used pages. Generally, the
easiest way to deal with this situation is to change the data
indexing scheme to make sure new rows are added to different
pages in the database. That way, when the page is locked by
someone down the counter ordering a full-meal-deal, another
operation can complete without having to wait.
--
※ 来源:·饮水思源站 bbs.sjtu.edu.cn·[FROM: 202.120.18.28]
--
☆ 来源:.哈工大紫丁香 bbs.hit.edu.cn.[FROM: Friendsp.bbs@bbs.sjt]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:2.114毫秒