08 No SQL Flashcards

1
Q

benefits of relational databases

A
  1. consistency, concurrency, recovery
  2. mature eco system
  3. centralised
  4. fast
  5. easy management
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

limitations of relational databases

A
  1. poor scalability
  2. not very robust
  3. not distributed (data is geo-distributed)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what is no sql

A
  1. non relational db

2. simplified data models to improve the generalisability

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

types of no sql

A
  1. key-value
  2. document
    3 columnar
  3. graph
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

no sql: key-value

A
  1. simplest
  2. key value stored in a hash table
  3. efficient, no complex query filters
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

no sql: document

A
  1. data stored in json format

2. 1 json is one document

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

SQL - no SQL migration schemes

A

Do we really want to migrate?

  1. one to one mapping
    - most popular but least effective
    - every table is a collection
    - each tuple is a document
  2. denormalisation
    - consolidate small tables to one big table
  3. forget migration, design from beginning
    - suitable for big application changes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

no sql: columnar

A
  1. collection of key value pairs
  2. row key, column key, timestamp
  3. data compression
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

no sql: graph

A
  1. explicit graph structure
  2. each node knows the adjacent nodes
  3. apply graph based algorithms easily
eg. 
node
relationship (belongs to)
property ('alice')
label (person)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

when to use no sql

A
  1. rdbms too restrictive
  2. no need for ACID
  3. data too large
  4. diverse data sources
  5. high requirements for data availability
How well did you know this?
1
Not at all
2
3
4
5
Perfectly