Member-only story
Learning Postgres: An Introduction to Relational, Hierarchical, and Network Databases (Part 1)
5 min readJun 18, 2024
A database is a systematically organized and structured collection of data that allows for easy storage, retrieval, and management of information. Databases can be used for various purposes, from storing personal information to managing large amounts of data in commercial or scientific applications.
Database types
- Relational Databases: Store data in tables that are linked by relationships. They use SQL for managing and querying data. Examples include MySQL, PostgreSQL, Oracle Database, and Microsoft SQL Server
- NoSQL Databases: These databases are designed to work with unstructured or semi-structured data. There are several types of NoSQL databases, including document (MongoDB), key-value (Redis), column-family (Cassandra), and graph (Neo4j)
- In-memory Databases: Store data primarily in the main memory (RAM) instead of on a hard disk, allowing very fast access to data. An example is Redis
- Distributed Databases: Data is distributed across multiple servers or locations, ensuring redundancy and scalability. Examples include Apache Cassandra and Google Bigtable
- Data Warehouses: These databases are optimized for querying and analyzing large amounts of data…