Understanding Serializable Isolation Level and SELECT FOR UPDATE in Database Transactions
This lecture note explains the serializable isolation level in database transactions and compares it with the use of SELECT FOR UPDATE for concurrency control.
Q&A: Why Can't We Use a Single Database Connection for Multiple Clients?
In this Q&A session, we explore why using a single database connection for multiple clients is problematic and how connection pooling solves these issues.
Understanding Indexing with Duplicate Values
A lecture note on how indexing works with columns that have duplicate values, covering index selectivity and practical examples.
Why Databases Read Pages Instead of Rows
This lecture explains why databases fetch entire pages instead of individual rows when executing SQL queries, covering variable-sized rows, disk storage limits, and how indexes work.
SQL Querying Fundamentals: Databases for Real-World Data
Learn how databases solve modern data challenges through SQL querying, filtering, and aggregation using SQLite.
Understanding Repeatable Read vs. Snapshot Isolation in Database Transactions
A clear explanation of how Repeatable Read and Snapshot Isolation work in databases, focusing on handling data changes during transactions.
Why Databases Might Ignore Indexes: A Lesson from Karate’s Question
A look at why PostgreSQL skips indexes for small tables and how outdated statistics can slow down queries after big data inserts.
Understanding Cost Units in PostgreSQL Query Planner
Lecture clarifying that PostgreSQL planner uses abstract cost units rather than milliseconds, with examples showing how costs reflect I/O and CPU work.
119 post articles, 15 pages.