2 - Physical DB Design
2 - Physical DB Design
2. Grouping of attributes
4. Selection of Indexes
2. Grouping of attributes
4. Selection of Indexes
Denormalization
Normalization Definitions
Normalization involves decomposing relations
to produce smaller, well-structured relations
student(studentid, campusaddress)
application(applicationid , applicationdate,
qualification, studentid)
student(studentid, campusaddress,
applicationdate, qualification)
Opportunities for Denormalization
pricequote(price)
item(itemid, description)
Opportunities for Denormalization
pricequote(vendorid,itemid, price)
item(itemid, description)
Opportunities for Denormalization
itemquote(vendorid,itemid, price,
description)
Opportunities for Denormalization
ITEM
itemid itemdesc instrid
advantageous
A1 laptop 1 when there are
A2 tablet 1 few instances of
A3 computer table 2 the entity on the
A4 cabinet 2 many side for each
STORAGE entity on the one
side
instrid wherestore constainertype
1 ortigas depot van
2 pasig depot truck
Opportunities for Denormalization
ITEM
itemid itemdesc wherestore constainertype
A1 laptop ortigas depot van
A2 tablet ortigas depot van
computer
A3 table pasig depot truck
A4 cabinet pasig depot truck
Other Forms of Denormalization
- Data replication
Other Forms of Denormalization
Horizontal Partitioning
Three Forms
Range
Hash
List
Other Forms of Denormalization
Advantages of Partitioning
1.Efficiency
2.Local optimization
3.Security
4.Recovery and uptime
5.Load Balancing
Disadvantages of Partitioning
1.Inconsistent access speed
2.Complexity
3.Extra space and update time
Other Forms of Denormalization
2. Grouping of attributes
4. Selection of Indexes
3. File Organizations
Sequential
Indexed
Hashed
Key Decisions in Physical DB Design:
3. File Organizations
3. File Organizations
3. File Organizations
2. Grouping of attributes
4. Selection of Indexes
Clustered
Non-Clustered
https://technet.microsoft.com/en-us/library/ms190457(v=sql.110).aspx
Key Decisions in Physical DB Design:
https://technet.microsoft.com/en-us/library/ms190457(v=sql.110).aspx
Non-clustered index contains the the
non-clustered index key values and each
key value entry has a pointer to the data
row that contains the key value.
2. Grouping of attributes
4. Selection of Indexes
Query Optimization