No SQL
No SQL
NoSQL
W2013
CSCI 2141
+
OLTP vs. OLAP
We can divide IT systems into transactional (OLTP) and analytical
(OLAP). In general we can assume that OLTP systems provide source
data to data warehouses, whereas OLAP systems help to analyze it
.
+
Challenges of Scale Differ
+
BIG DATA!
6 November 9, 2020
7 November 9, 2020
+
SQL Characteristics
Transactions
8 November 9, 2020
+
SQL Physical Layer Abstraction
9 November 9, 2020
+
Data Manipulation Language (DML)
Data Aggregation
Compound statements
10 November 9, 2020
+
Data Definition Language
11 November 9, 2020
+
Transactions – ACID Properties
Atomic
– All of the work in a transaction completes
(commit) or none of it completes
Consistent
– A transaction transforms the database
from one consistent state to another consistent state.
Consistency is defined in terms of constraints.
Isolated– The results of any changes made during a
transaction are not visible until the transaction has
committed.
Durable – The results of a committed transaction
survive failures
12 November 9, 2020
+
NewSQL: more OLTP throughput, real-
time analytics
) SQL as the primary mechanism for application interaction
From www.nosql-database.org:
Next Generation Databases mostly addressing some
of the points: being non-relational, distributed, open-
source and horizontal scalable. The original intention
has been modern web-scale databases. The
movement began early 2009 and is growing rapidly.
Often more characteristics apply as: schema-free,
easy replication support, simple API, eventually
consistent / BASE (not ACID), a huge data amount,
and more.
14 November 9, 2020
+
NoSQL Products/Projects
http://www.nosql-database.org/ lists
122 NoSQL Databases
Cassandra
CouchDB
StupidDB
Etc.
15 November 9, 2020
+
NoSQL Products/Projects
http://www.nosql-database.org/ lists
122 NoSQL Databases
Cassandra
CouchDB
StupidDB
Etc.
16 November 9, 2020
+ 17
November 9, 2020
+
BASE Transactions
Characteristics
Weak consistency – stale data OK
Availability first
Best effort
Approximate answers OK
Aggressive (optimistic)
Simpler and faster
18 November 9, 2020
+
Brewer’s CAP Theorem
19 November 9, 2020
+
+
NoSQL Database Types
21 November 9, 2020
+
Other Non-SQL Databases
XML Databases
Graph Databases
DocumanetDatabases
22 November 9, 2020
+
Storing and Modifying Data
Syntax varies
HTML
Java Script
Etc.
Optimistic Concurrency
25 November 9, 2020
+
Retrieving Data
Syntax Varies
No set-based query language
Procedural program languages such as Java, C, etc.
26 November 9, 2020
+
Open Source
27 November 9, 2020
+
NoSQL Summary
28 November 9, 2020
+
Summary
SQL Databases
Predefined Schema
Standard definition and interface language
Tight consistency
Well defined semantics
NoSQL Database
No predefined Schema
Per-product definition and interface language
Getting an answer quickly is more important than
getting a correct answer
29 November 9, 2020
+
Web References
30 November 9, 2020
+
Web References
31 November 9, 2020
+
Web References
32 November 9, 2020