0% found this document useful (0 votes)
23 views

Week 5

The document discusses fragmentation in databases, including vertical fragmentation which divides a relation into subsets of columns. It also discusses attribute usage matrices, affinity matrices, and the differences between SQL and NoSQL databases. NoSQL databases like MongoDB are highlighted as being highly scalable and available while not enforcing consistency in the same way as relational databases. MongoDB specifically stores data in documents and collections rather than tables.

Uploaded by

ruba
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Week 5

The document discusses fragmentation in databases, including vertical fragmentation which divides a relation into subsets of columns. It also discusses attribute usage matrices, affinity matrices, and the differences between SQL and NoSQL databases. NoSQL databases like MongoDB are highlighted as being highly scalable and available while not enforcing consistency in the same way as relational databases. MongoDB specifically stores data in documents and collections rather than tables.

Uploaded by

ruba
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 23

Week-5

Muhammad Shaheryar
Today’s Lecture
• What we studied in Last lecture
• Fragmentation
• Predicates
• Minterm Predicates
• Affinity Matrix in DDS
Vertical Fragmentation
• Each site must not necessarily need all of the attributes.

• One of the best use of vertical fragmentation is to divide it into


columns

• It is a subset of relation created by subset of columns.


Attribute Usage Value
Example
More Queries
Attribute Usage Matrix
Access Frequency Matrix
Attribute Access Matrix and Attribute Frequency Matrix
Affinity Matrix
Attribute Affinity Matrix
What’s New
SQL vs NoSQL
Example
Introduction to NoSQL Databases
Limitations of Relational Databases
• Consistency and integrity

• JSON Format

• Advantages of NoSQL
• High scalability
• High availability
• What’s Missing in NoSql

• When to use it
MongoDB
• MongoDB is an open source, document oriented database that stores
data in form of documents (key and value pairs).
Mapping RDB to Mongo DB
Table vs Collection

You might also like