Storage and Retrieval Flashcards
Fundamentally, what does a database do
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
What is a log
In the general sense, a log is an append-only sequence of records. It can either be binary or human readable
What is one way of efficiently finding data stored in the database
Making use of indexes.
What are indexes
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.
Effect of Indexes on database performance
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.