Page 527 - Computer_Science_F5
P. 527
Example of document stores include
Computer Science Use cases (b) Key-value stores: In these databases,
Mongo database (MongoDB).
(i) Big data applications and real-time
analytics.
data is stored in a schema-less way,
(ii) Content management systems
where each item in the database is
and e-commerce platforms with
FOR ONLINE READING ONLY
evolving data models.
are highly scalable and are often used
(iii) Social networks, gaming stored as an attribute-value pair. They
applications, and IoT systems need for caching and session management.
scalable, high-performance data Examples include Redis.
storage solutions. (c) Column-family stores: These are also
known as wide-column stores, these
NoSQL databases are a diverse group databases organise data into columns
of database management systems that rather than rows. Each column family
are designed to handle various types contains rows with a unique row key,
of unstructured, semi-structured, and and each row consists of multiple
structured data. columns. They are suitable for
storing and querying vast amounts of
Four main classifications of NoSQL data with high availability. Example
databases of column-family stores database
(a) Document stores: These databases includes HBase.
store and retrieve semi-structured (d) Graph databases: These databases
data in JavaScript Object Notation are optimised for storing and
(JSON) or Binary Javascript Object querying data with complex
Notation (BSON) format. Each relationships. They represent data
document can contain a different as graphs consisting of nodes, edges,
number of fields, and the structure can and properties. Example of graph
vary from one document to another. database include Neo4j.
Creating a NoSQL database
Case study: To create a MongoDB as a NoSQL database
To create a MongoDB database, you first set up a MongoDB server. Then, you
use a MongoDB client or driver to work with it. Use the following step-by-
step guideline on how to create a MongoDB database
Step1: Install MongoDB:
Visit the MongoDB download center (https://www.mongodb.com/try/
download/community) to download and install MongoDB Community
518
for Advanced Secondary Schools
Computer Science Form 5.indd 518 23/07/2024 12:35

