Storage and Retrieval Flashcards

1
Q

Fundamentally, what does a database do

A

When we give it data, we expect it to store the data and when we ask for it, we expect to get the data we stored back

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

What is a log

A

In the general sense, a log is an append-only sequence of records. It can either be binary or human readable

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

What is one way of efficiently finding data stored in the database

A

Making use of indexes.

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

What are indexes

A

An index is a kind of data structure that holds additional metadata about the primary data stored. It basically acts as a landmark/signpost that helps to quickly identify or locate data.

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

Effect of Indexes on database performance

A

Adding or removing indexes only have effect on the performance of queries. Often times, when indexes are added, there’s extra overhead on writes because the indexes also have to be updated. However, if chosen appropriately, read performance is usually increased with indexes.

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