Experiment No.4 OLAP LAB: - by Inthiyaz Ahmad Khan (TEIT 50)
Experiment No.4 OLAP LAB: - by Inthiyaz Ahmad Khan (TEIT 50)
4 OLAP LAB
-By Inthiyaz Ahmad Khan (TEIT 50)
Theory:
• Fragmentation
Fragmentation is the task of dividing a table into a set of
smaller tables. The subsets of the table are called
fragments. Fragmentation can be of three types:
horizontal, vertical, and hybrid (combination of horizontal
and vertical).
Fragmentation should be done in a way so that the original
table can be reconstructed from the fragments. This is
needed so that the original table can be reconstructed
from the fragments whenever required.
Vertical Fragmentation:
In vertical fragmentation, the fields or columns of a table
are grouped into fragments. In order to maintain
reconstructiveness, each fragment should contain the
primary key field(s) of the table. Vertical fragmentation
can be used to enforce privacy of data.
Horizontal Fragmentation
Horizontal fragmentation groups the tuples of a table in
accordance to values of one or more fields. Horizontal
fragmentation should also confirm to the rule of
reconstructiveness. Each horizontal fragment must have
all columns of the original base table.
Hybrid Fragmentation
In hybrid fragmentation, a combination of horizontal and
vertical fragmentation techniques are used. This is the
most flexible fragmentation technique since it generates
fragments with minimal extraneous information. However,
reconstruction of the original table is often an expensive
task.
Outputs:
Conclusion: Hence, we have successfully implemented the use
of Data Fragmentation in Postgresql.