Académique Documents
Professionnel Documents
Culture Documents
1/
1
04/03/2022
Datastores systems
⚫ NoSQL :
3/
NoSQL datastores
− NoSQL :
⚫ Aka (also known as) "Not only SQL," aka "Non-
relational" was specifically introduced to handle the rise
in data types, data access, and data availability
⚫ Why consider NoSQL?
− Flexibility
− Scalability - they scale horizontally rather than
vertically
− Availability
− Lower operational costs
− Specialized capabilities
4/
2
04/03/2022
NoSQL datastores
5/
3
04/03/2022
Key-Value store
7/
4
04/03/2022
Documents store
❑ ça repose également sur le paradigme [clé,
valeur], où la valeur dite document a une structure
arborescente: elle est formée d’une liste de couples
‘’champ’’:’’valeur’’.
Le format du document est principalement de
type JSON ou XML, et il est compréhensible par le
système.
❑ Terminologie:
o collection: l’équivalent d’une table
o document: l’équivalent d’un enregistrement. Mais
les enregistrements d’une même collection n’ont
pas nécessairement la même structure
9/
10
5
04/03/2022
11
12
6
04/03/2022
Hbase
⚫ Column-oriented
⚫ HBase is an open-source, non-relational,
DataFile format
⚫ Approriate for OLTP
14 /
14
15
7
04/03/2022
16
17
8
04/03/2022
⚫ Starting Hbase
>/usr/bin/hbase shell
create <table name>, <column family 1>, <column family 2>, ...
20
9
04/03/2022
21
22
10
04/03/2022
Notion of Regions
26 /
26
27
11
04/03/2022
28
31
12
04/03/2022
ACID properties
Atomicity guarantees that each transaction is treated as a single "unit", which
either succeeds completely, or fails completely: if any of the statements
constituting a transaction fails to complete, the entire transaction fails and the
database is left unchanged.
Consistency ensures that a transaction can only bring the database from one
valid state to another, maintaining database invariants: any data written to the
database must be valid according to all defined rules.
33
13