NoSQL
NoSQL
NoSQL
•
Need of NoSQL
Need of NoSQL
• Easy scalability
• Schemaless design
• Structure doesn’t need to be defined
NoSQL Types
Recap: Data Model : Implementation
Models
• Relational
• NoSql
• Key/ Value • Other than the tabular relations
• Graph • Big data and real-time web apps
• Document • Examples: MongoDB, HBase
• Column-family
• Array / Matrix
• Hierarchical
• Network
18
Key Value Pair
• A key-value database is a type of
nonrelational database that uses a simple
key-value method to store data.
• NoSQL databases don’t require any predefined schema, allowing you to work
more freely with “unstructured data.” (such as texts, social media posts, photos,
videos, email)
• Relational databases are vertically scalable, but usually more expensive, whereas
the horizontal scaling nature of NoSQL databases is more cost-efficient.
Is NoSQL better than SQL?
• NoSQL tends to be a better option for modern applications that have more
complex, constantly changing data sets, requiring a flexible data model that
doesn’t need to be immediately defined.
• Most developers or organizations that prefer NoSQL databases, are attracted to the
agile features that allow them to go to market faster, make updates faster. Unlike
traditional, SQL based, relational databases, NoSQL databases can store and
process data in real-time.
• While SQL databases do still have some specific use cases, NoSQL databases have
many features that SQL databases are not capable of handling without tremendous
costs, and critical sacrifices of speed, agility, etc.
Assignment
1.Compare the role of NoSQL databases in analytics versus traditional SQL
databases.
2.Explain how NoSQL databases handle schema evolution in analytics projects.
3.How does a NoSQL database handle large-scale distributed data for warehousing?
4.Compare and contrast document-oriented NoSQL databases (e.g., MongoDB) with
columnar databases (e.g., Cassandra) for warehousing purposes.
5.Explain how NoSQL databases support horizontal scaling in data warehousing.
6.Explain how a NoSQL system like MongoDB can handle multidimensional data for
analytical queries?
7.How do column-family NoSQL databases like Cassandra handle aggregate
analytical functions?
8.How does NoSQL handle the storage and analysis of unstructured or semi-
structured data for data mining?
9.Describe how graph databases (e.g., Neo4j) are used in data mining tasks like social
network analysis. What are the advantages of using a NoSQL database for real-time
data mining?
10.How can NoSQL databases integrate with machine learning frameworks for
advanced data mining?