arthrop0d

Brief articles on varied topics.

sql

14 articles tagged sql.

  1. SQL Cardinality Estimation and Query Plan Choice

    How table statistics, histograms, and distinct-value counts predict query sizes and guide join order and access-path selection.

    sqldatabases

  2. SQL Write-Ahead Logs and Crash Recovery

    How SQL databases record changes before data pages, then redo or undo them after a crash without losing committed work.

    sqldatabases

  3. Serializable Snapshot Isolation

    How snapshot isolation detects dangerous read/write dependency patterns and aborts transactions that could produce non-serializable results.

    sqldatabases

  4. B-Tree Page Splits and Parent Updates

    How B-tree pages divide entries, propagate separator keys upward, and preserve fast indexed lookups as tables grow.

    databasessql

  5. SQL Cardinality Estimation and Query Plans

    How column statistics and histograms predict row counts—and how bad predictions lead to poor joins, scans, and unexpectedly slow queries.

    sqldatabasesperformance

  6. SQL Write-Ahead Logging and Crash Recovery

    How databases persist redo records before data pages so committed SQL transactions survive crashes and incomplete writes can be repaired.

    sqldatabases

  7. MVCC Snapshots in SQL Databases

    How MVCC snapshots select visible row versions so transactions can read consistent data while concurrent writes continue.

    sqldatabases

  8. MVCC Snapshots and Row Version Visibility

    How MVCC snapshots choose visible row versions so SQL readers and writers can run concurrently without blocking each other.

    sqldatabasesconcurrency

  9. SQL Query Cardinality Estimation and Histograms

    How SQL planners use table statistics to estimate predicate results and choose scans, joins, and execution strategies.

    sqldatabases

  10. SQL Write-Ahead Logs and Crash Recovery

    A write-ahead log records transaction changes durably before data pages, allowing a SQL database to recover committed work after a crash.

    sqldatabases

  11. MVCC Snapshots and SQL Row Visibility

    How SQL transactions choose visible row versions so readers can use a consistent view while writers update the same data.

    sqldatabasesconcurrency

  12. SQL NULL and Three-Valued Logic

    Understand SQL NULL, UNKNOWN predicate results, and why WHERE, JOIN, and CHECK constraints handle them differently.

    sqldatabases

  13. SQL Selectivity Estimates and Query Plans

    How database planners use histograms to estimate matching rows, and how bad estimates lead to unexpectedly slow scans, joins, and indexes.

    sqldatabasesperformance

  14. Database Write-Ahead Logging and Crash Recovery

    How databases use durable log records to preserve committed transactions and remove incomplete changes after a crash.

    sqldatabases

← All tags