Database Types Flashcards
What are the 3 open source relational databases mentioned in the book?
MySQL,
MariaDB
PostgreSQL
Acording to the book, what are the three distinct differences about a non-relational database compared to a relational one?
1) They don’t have a predefined structure based on tabular data
2) Data validation happens in code, as opposed to being done in the DB
3) Data types are absent
while they aren’t tabular, they still can store structured data! Data-types aren’t entirely excluded, they’re just not rigidly enforced and can be defined by the user.
Which of the below non-relational database type stores data in the most simplest of the non-relational types and is suited for applications that need fast and scalable access?
Key-Value
Document
Column-Family
Graph
Key-Value.
Match the key value type to the database. Note, the same structure choice can apply to more than one database
1) can be structured, semi-structured and unstructured
2) structured only
3) structured or semi-structured
key-value
document
column-family
graph*
1) can be structured, semi-structured and unstructured - document
2) can be structured, semi-structured and unstructured - column-family
3) can be structured, semi-structured and unstructured - key-value
4) can be structured, semi-structured and unstructured - graph
Yes! They’re all the same!
*graph databases don’t use key value pairs but the properties is akin to columns in a relational database and these can contain the structures above.
What is meant by globally unique keys in reference to key-value databases?
The keys are not just unique to the table but unique across different databases or servers.
Is similar to a key-value database but instead the value must conform to a strict format, rather than have no structural limits
Document database
format structure not to be confused with the structure of the data!
can search using both the key and within the value itself
Document database
because the value has a known structure
1) It uses xxx-xxxxx pairs to store data
2) xxxxxxx that share similar types of data are grouped into what’s called a xxxxxx xxxxx
3) xxxx are linked to one or more xxxxxx xxxxxxx
4) Each xxxxxx within a xxxxxx xxxxx is stored separately in their own partition
1) It uses KEY-VALUE pairs to store data
2) COLUMNS that share similar types of data are grouped into what’s called a COLUMN FAMILY
3) KEYS are linked to one or more COLUMN FAMILIES
4) Each COLUMN within a COLUMN FAMILY is stored separately in their own partition
Which of the four database types below would you choose if you need to store massive data sets with lots of attributes and relationships that needs to scale?
Key-value
Column-family
Graph
Document
Column-family
You need to store and retrieve simple data quickly that doesn’t have a lot of structure, which of the two non-relational databases would you choose?
Key-value or Column-family
Key-value
a key value pair is a way of storing and retrieving ____?
Key-value pair is a way of storing and retrieving data
What kind of database best supports complex data like social networks, fraud detection and recommendation systems?
Graph databases
a column-family database stores data in columns, TRUE or FALSE
No, in rows.
which non-relational databases tend to use programming languages to query the data as opposed to using a query language?
key-value and document databases
Which database type would you pick if you needed to handle many simultaneous requests at speed and is easily scalable?
key-value