Design The Database of Laboratory Management System: BAO Kao-Ming CHENG Geng-Guo
Design The Database of Laboratory Management System: BAO Kao-Ming CHENG Geng-Guo
Design The Database of Laboratory Management System: BAO Kao-Ming CHENG Geng-Guo
Abstract - Database design is a complicated and important II. THE METHOD AND SKILL OF DATABASE DESIGN
work, it determines the success or failure of the system, so it
needs considering a combination of factors and handling The database design refers to construct the best
properly. In designing the database of laboratory database mode, build database and the application
management system, use data-driven concept and increase system, make it to store data effectively and satisfy the
proper redundancy of Space-for-Performance method, requirements of users in a certain application
which meet the needs of flexible management, large storage environment. Nowadays, the majority work of database
requirements of the user. The system is deployed on a PC design still accomplished artificially, it still lacks of a set
server, and putted into operation for one year, it has a stable of perfect theories, methods and tools to realize the
performance, fine effects, and reaches the expected design
automation or interactive semi automation of database
target. The realization of the system has accumulated great
experiences for developments of enterprise application design. Therefore, it reflects the difficulty and importance
system which develop in the PC sever and have a large of database design. Database design mainly includes four
mount of data. stages: requirements analysis, conceptual schema design,
Index Terms - database, Data-driven, Performance logical structure design and physical structure design.
A. Requirements analysis
Optimization
Investigate and analyze the business activities and data
use situations, make clear of the type, scope, quantity as
I. INTRODUCTION well as the exchanges in business activities of the data
The database’s design is the most important factor that may be used, make sure of the apply requirements and all
decides the software’s quality. In production of software, kinds of constraints and then form user’s requirement
the key point is structure, but the core of software itself is agreements.
domain, that is design of database. The quality of The requirements analysis is the process to fully
database design has great influence on the system understand the user’s requirements, to deeply understand
performance. If design an unreasonable database model, the real world. Whether the database can reflect the real
it will not only increase the difficulty of maintaining and world correctly, mainly depends on requirements
programming, but also have a bad influence on the analysis. In the process of requirements analysis, via
system when is putted into operation. In the procession of carefully investigating the object of real world need to be
analyzing, designing, testing and test running, the handled, to get a full knowledge of the original system,
designer and tester often put emphasis on the function make sure of the user’s requirements, expand new
realization, and often ignore the weak aspects of the functions and data requirements based on the original
performance because the data’s size is not great. When one, and consider the possible extension and change in
the system was putted into operation for a period of time, the future, but not only according to the current
they began to notice that the performance of the system is requirementss to design database. The commonly used
low, even it was unable to satisfy the basic needs, and analyze methods are: top-down structured analysis
finally caused the failure of the system and needed a method (Structured analysis, called SA method for short),
completely new development. So it has a very good this method start form the top layer of the system
engineering and theoretical meaning to study the organization structure, and adopt a way of decompose by
modeling, designing, developing and applying of the layer to analyze system, and use data flow chart and data
database. dictionary at the same time.
The sample chemical test is an unique industry, it has B. Conceptual schema design
the character of indefinite test task, large data etc. In the According to the real world user described, classify,
condition of limited investment, how to design, develop assemble and abstraction, build the abstract conceptual
the laboratory management system and enable it with data model. This conceptual model reflects the
large data and flexible managed functions is the main information structure, flow condition, mutual restriction,
task, and among with the design and develop of database and storage, querying, processing of information in each
is the key point. departments of the real world. The building model should
avoid the detailed aspects of database to be realized in
computer, and show it in an abstract form.
The conceptual structure design often base on
intermediate data flow chart to design branch E-R
2305
The primary key is the most important attributes in
relational data model, it has the function of marking the
record, and the principles that determine a primary key
are as follows:
Use attributes as the primary key:
The primary should be only.
Avoid to use compound key.
The foreign key is always connected to the other
primary key.
2. Use the primary key that system generates:
Fig. 1 the E-R model of the flexible laboratory project management
Use the primary key that system generates itself, it can
To satisfy the need of storing large amounts of data on
effectively control the access to the data each line stored.
the condition of limited investment and limited
Optimization of the data model, make sure of the data
equipments, it requires an optimize methods to design the
dependence, eliminate the redundancy connection, fix the
database. According to the history records of the
scheme rank of relational model. Merge or decompose of
laboratory, there are about 300 test sample needed to test
the data model that does not fit the data model, so as to
each day, and there are about 20 sample test elements of
reduce data redundancy.
each sample test results needed to record each day, so
there are about 300×20=6000 items of records, and C. physical structure design
there are about 6000 × 30 × 12 = 2160000 items of Physical structure design is to choose a best physical
records. structure that suit the environment best for the logical
If the system need to store data for 3 to 5 years, there data model. In this design, in order to manage
are thousands of records in the system, and if need to conveniently and enable the system to reach its best
query, statistics, printing, it need to connect with other performance, design three storage spaces separately:
tables, which will bring about large amount of user’s basic data space(USER_DATA), it is used for
intermediate results, and the system performance will store user’s basic data, and the data is not changed
suffer great challenge, even cause the system collapse regularly. Business data space(BUSIN_DATA)is used to
under the condition of limited PC hardware resources. So store large mount of business data, and the space of data
it takes a strategy of adding suitable redundancy change needs to backup frequently. User’s index space
for the performance to design database, the E-R model (USER_IND_DATA) is used to store all the indexes.
are as follows:
Ⅴ. CONCLUSION
Database designing is a complicated and important
work, it determines to the success or failure of the
system, so it needs considering a combination of factors
and handling properly. It not only needs to consider the
feasibility, but also consider the possible changes, not
only consider the convenient of the development, but also
the running efficiency of the system. In designing of
laboratory management database system, use data-driven
concept and add proper redundancy change for the
performance, enable the system with the functions that
the user can manage the test project by themselves, they
Fig. 2 the E-R model of the redundancy history records can add, edit the test project freely, and they can also add,
B. Logical design edit the elements, units of the test projects. To solve the
problem of storage large amount data, adopt a method
This system uses Oracle9 relational database, and
that use space change for performance, add properly
transforms E-R chart to the relational model according to
redundancy data, to guarantee the efficient of the system.
the rule of E-R model, and optimizes it at the same time.
The system database and Web application server are
The transformation is mainly transforming the entity,
deployed on the single IBM X3500 PC server, and putted
entity attributes, and the relation between entities to the
into use for more than one year, the system performance
relational model. The specific methods are: An entity
is stable and fine, it satisfies the user that can manage
type transform to a relational mode, the entity attributes
flexible, large amount data storage, arrives the original
transforms to the relational attributes. The connection
design target. The system’s effective design and success
transforms according to the different types,1:1 relation
put into use under limited investment and limited
directly pass to any correspondence relational entities,1:n
resources have accumulated very good experience of
relation pass to the majority correspondence relational
large data storage and flexibly management.
model, n:m relation should establish another relational
model, and all the relation attributes transform to
relational model attributes.
2306
REFERENCES [4]Luo Huibo. The first step of JSF: JSF+Spring+
[1] Wang Xuan.Software design method [M]. Beijing:Ts- Hibernate+AJAX programming practices[M]. Beijing: Tsinghua
inghua University Press,2003. University Press, 2007.
[2] Yujie He,etc.Database design[M]. Beijing:Mechanical
industry Press,2001.
[3]Wang Guanyu, Zhao Dongsheng. Compare and analysis of
JSF and Struts based on J2EE platform [J]. Microcomp-
uter development. 2005,15(12):58-60.
2307