Professional Documents
Culture Documents
html#1
Database Systems
1 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
J Mwaura
2 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
3/44
3 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
Benefits of Relational
Databases
Designed for all purposes
ACID
4/44
4 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
Because...
5/44
5 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
And...
1. Speed (performance)
2. High availability
3. Partition tolerance
6/44
6 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
7/44
7 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
Cloud computing
Collaboration
IP-based communication
Social media
8/44
8 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
9/44
9 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
10/44
10 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
11/44
11 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
12/44
12 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
RDBMS Performance
13/44
13 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
Properties of NoSQL
Databases
Provides:
14/44
14 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
Properties of NoSQL
Databases
NoSQL avoids:
15/44
15 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
16/44
16 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
17/44
17 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
· No schema to consider
· No unused cell
· No data type (implicit)
· Most of considerations are done in
application layer
· Data is gathered in an aggregate -
document
18/44
18 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
19/44
19 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
20/44
20 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
ACID BASE
21/44
21 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
22/44
22 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
23/44
23 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
24/44
24 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
25/44
25 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
26/44
26 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
27/44
27 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
28/44
28 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
Document store
Document store properties
· It is a key-value store
· The data objects stored as values for keys
are called documents; the keys are used for
identification
· The documents contain data structures in
the form of recursively nested attribute-
value pairs without referential integrity
· These data structures are schema-free, i.e.,
arbitrary attributes can be used in every
document without defining a schema first
29/44
29 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
Document store
30/44
30 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
31/44
31 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
Supports transactions
Observes ACID
32/44
32 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
33/44
33 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
34/44
34 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
35/44
35 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
36/44
36 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
Data Warehouse
Business intelligence - decisions making based
on facts gathered from the analysis of the
available data
37/44
37 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
Data Warehouse
Data warehouse - a data warehouse or DWH is a
distributed information system with the following
properties
· Integrated - data from various sources and
applications (source systems) is periodically integrated
and filed in a uniform schema
· Read only - data in the data warehouse is not
changed once it is written
· Historicized - thanks to a time axis, data can be
evaluated for different points in time
· Analysis-oriented - all data on different subject
areas like customers, contracts, or products is fully
available in one place
· Decision support - the information in data cubes
serves as a basis for management decisions
38/44
38 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
39/44
39 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
Selection
Prognosis
Knowledge acquisition
40/44
40 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
MongoDB
Mongo database properties;
· It is a JSON-style documents
· Provides a Flexible 'Schemas" e.g.
{"author":"mike","text":"..."} change
to
{"author":"eliot","text":"...","tags":
["mongodb"]}
· Dynamic indexing & querying
· Atomic update modifiers
· Focus on performance
· Replication
· Auto-sharding
· Many supported platforms/languages
41/44
41 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
MongoDB
Mongo database is less good at;
42/44
42 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
End of Course
Database Systems
43 of 44 1/31/2022, 7:38 AM
Database Systems https://omaps.bitbucket.io/tutoria/jkuat/ics2206/ppt-10.html#1
That's it!
Queries about this Lesson, please send them to:
jmwaura.uni@gmail.com
*References*
· Database Systems: Design,
Implementation, and Management,
12th ed. Carlos Coronel & Steven
Morris
· Database Modeling and Design;
Logical Design, 5th ed. Taby
Teorey et.al
· Fundamentals of database
systems, 6th ed. Ramez Elmasri &
Shamkant B. Navathe
“ Courtesy of … ”
44/44
44 of 44 1/31/2022, 7:38 AM