Skip to content

pleasefixai/cockroachdb

v1.0.1Apache-2.0

Guides to design, secure, migrate and operate CockroachDB clusters and their SQL.

designing-application-transactions

Guides application developers in designing correct and performant transaction patterns for CockroachDB, covering transaction lifetime, implicit vs explicit transactions, retry handling with exponential backoff, pushing invariants into SQL, selective pessimistic locking, set-based operations, connection pooling, prepared statements, keyset pagination, follower reads, and separating business logic from database logic. Use when building applications on CockroachDB, designing transaction workflows, handling retries, optimizing application-layer database interactions, or configuring connection pools.

Version
1.0
Compatibility
CockroachDB >= 22.1. Works with or without a live database connection. With connection, requires appropriate privileges on target tables.
Read SKILL.md at the source

Pinned to revision 4e8964e24a5a, so it is the text this page describes rather than whatever the author pushed since.

Files

Every link opens the file at its source, pinned to the revision this page describes.