Relational Databases - Basics
Disk types:
- SSD is faster and more expensive than HDD
- SSD is used for frequently accessed/modified data, and HDD for rarely accessed/modified data
Relational database:
- A structured database where data is stored in tabular format
- Not all relational databases support SQL
Non-relational/NoSQL database: it’s free of imposed, tabular-like structure
Relational Databases - ACID
Relational Databases - Indexes
Relational Databases - Consistency types and tools
Key-Value Stores
Blob (Binary Large Object) Storage
Time Series database (TSDB) and Spatial database
Time Series database (TSDB):
- Optimized for storing and analyzing time-indexed data
- Time indexed data: data points that occur at a given moment of time
- Tools: InfluxDB, Prometheus
Spatial database:
- Optimized for storing and querying spatial data, like locations on a map
- Rely on spatial indexes like quadtree to quickly perform queries like finding all locations in the vicinity of a region
Graph Database 1
Graph Database 2
Quadtree 1
Quadtree 2
Replication
Sharding - Basics
Sharding - Strategies
Replication and Sharding - Hot Spot