NoSQL databases Flashcards

1
Q

What are the main advantages of NoSQL database?

A
  • speed
  • schemaless data representation ( you don’t need to think about data structure too much )
  • scalability ( it’s much scalable than relation db )
  • no complex SQL request
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What type of NoSQL database do you know?

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

What is RDBMS?

A

Relational Database Management System

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

What are the most popular NoSQL databases?

A
  • Mongo
  • Redis
  • Hadoop
  • Casandra
  • Neo4j
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is column-oriented store?

A

This db stores data in columns instead of rows:

relation db
Name, Surname
name1, surname1
name2, surname2

column-oriented db
name1, name2
surname1, surname2

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

What is document store?

A

This database use XML, JSON or YAML to represent their data.

# first record
{
  "EmployeeID": "SM1",
  "FirstName" : "Anuj",
  "LastName" : "Sharma",
  "Age" : 45,
  "Salary" : 10000000
}
# second record
{
  "LocationID" : "Bangalore-SDC-BTP-CVRN",
  "RegisteredName" : "ACME Software Development Ltd"
  "RegisteredAddress" : {
  "Line1" : "123, 4th Street",
  "City" : "Bangalore",
  "State" : "Karnataka"
 },
}

Every record can have a different structure.

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

What is key-value database?

A

This is something like hash in Ruby

{
 name: "Douglas Adams",
 street: "782 Southwest St.",
 city: "Austin",
 state:  "TX"
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is graph databases?

A

Graph databases represent a special category of NoSQL databases where relationships are represented as graphs.

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

What application is not good for NoSQL database?

A
  • Transactional application ( data consistency is the most important factor)
  • Computation application ( with less than a hundred million records)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What application is good for NoSQL database?

A
  • Computation application ( lots of calculation) with more than a hundred million records
  • Web-scale application ( lots of data for one user, you need to store a massive amount of data. )
  • Your application requires super-low latency.
  • Your data are unstructured, or you do not have any relational data.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly