Cloud Tech by Victor

Databases

Indexing, normalization, transactions, and the storage-engine internals that decide whether a query takes a millisecond or a minute. Ordered from foundational to advanced, 9 docs in this category.

Docs in Databases

DatabasesBeginner

PostgreSQL Fundamentals

How tables, joins, aggregates, window functions, and transactions fit together in everyday PostgreSQL work, from the actual internals of a single index (covered in PostgreSQL Indexes) to the SQL you write day to day.

Updated 2026-07-24
7 min read
DatabasesIntermediate

Database Connection Pooling

Why transaction pooling gives far better connection reuse than session pooling, and why that same efficiency silently breaks SQL PREPARE, SET, LISTEN, and session-level advisory locks, even though PgBouncer can support protocol-level named prepared statements under transaction pooling when max_prepared_statements is enabled.

Updated 2026-07-24
3 min read
DatabasesIntermediate

Database Locking & Deadlocks

How PostgreSQL's row-level lock modes actually differ in strength, why it can't predict which transaction a deadlock will abort, and why acquiring locks in a consistent order is the real fix, not a "nice to have".

Updated 2026-07-24
3 min read
DatabasesIntermediate

Database Normalization

What 1NF, 2NF, and 3NF actually require, why normalization removes update anomalies, and when denormalizing on purpose is the right call.

Updated 2026-07-10
3 min read
DatabasesIntermediate

Database Partitioning

How range, list, and hash partitioning each split one logical table into physical pieces, and why partition pruning depends entirely on the WHERE clause matching partition bounds directly, not on any index.

Updated 2026-07-24
3 min read
DatabasesIntermediate

Database Replication

Why asynchronous replication can silently lose the most recent commits if the primary crashes, what synchronous_commit's three levels actually each guarantee, and how to measure replication lag instead of assuming it's small.

Updated 2026-07-24
3 min read
DatabasesIntermediate

Database Transactions & Isolation Levels

Why PostgreSQL's default Read Committed isolation still allows non-repeatable reads and phantom reads, and why Repeatable Read and Serializable trade that risk for transactions your application has to be ready to retry.

Updated 2026-07-24
3 min read
DatabasesIntermediate

PostgreSQL Indexes

How B-Tree, Hash, GIN, BRIN, and covering indexes work in PostgreSQL, when to create them, how to inspect usage, and the write-overhead trade-offs at scale.

Updated 2026-07-20
4 min read
DatabasesIntermediate

SQL Joins & Query Planning

Why the same JOIN can execute as a nested loop, a hash join, or a merge join depending entirely on table size and available sort order, and why "it's impossible to suppress nested loops entirely" is a real, documented planner constraint.

Updated 2026-07-24
3 min read