08 No SQL Flashcards
1
Q
benefits of relational databases
A
- consistency, concurrency, recovery
- mature eco system
- centralised
- fast
- easy management
2
Q
limitations of relational databases
A
- poor scalability
- not very robust
- not distributed (data is geo-distributed)
3
Q
what is no sql
A
- non relational db
2. simplified data models to improve the generalisability
4
Q
types of no sql
A
- key-value
- document
3 columnar - graph
5
Q
no sql: key-value
A
- simplest
- key value stored in a hash table
- efficient, no complex query filters
6
Q
no sql: document
A
- data stored in json format
2. 1 json is one document
7
Q
SQL - no SQL migration schemes
A
Do we really want to migrate?
- one to one mapping
- most popular but least effective
- every table is a collection
- each tuple is a document - denormalisation
- consolidate small tables to one big table - forget migration, design from beginning
- suitable for big application changes
8
Q
no sql: columnar
A
- collection of key value pairs
- row key, column key, timestamp
- data compression
9
Q
no sql: graph
A
- explicit graph structure
- each node knows the adjacent nodes
- apply graph based algorithms easily
eg. node relationship (belongs to) property ('alice') label (person)
10
Q
when to use no sql
A
- rdbms too restrictive
- no need for ACID
- data too large
- diverse data sources
- high requirements for data availability