Data Sharding Flashcards

1
Q

What is sharding or data partitioning?

A

Breaking up a database into smaller parts

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

Why would you shard a database?

A

In order to scale, split up among multiple machines

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

Horizontal partitioning

A

put different rows into different tables

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

What is a con of horizontal partitioning?

A

Must choose range values carefully so the servers are not unbalanced

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

Vertical partitioning

A

Divide data based on specific features (ie users on one server, posts on another, etc)

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

What is a con of vertical partitioning?

A

If the application experiences additional growth, it may be necessary to partition further

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

Directory based partitioning

A

create a lookup service that knows the partitioning scheme and abstracts it away from the DB code. Query the directory server to figure out what DB to look at

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