CockroachDB Distributed SQL

•
5
•

Implements specialized CockroachDB patterns including mandatory transaction retries, multi-region performance optimizations, and online schema changes.

This skill equips Claude with the architectural patterns and domain-specific logic required to build resilient, distributed applications on CockroachDB. It addresses the critical operational differences from standard PostgreSQL, such as the necessity of handling SQLSTATE 40001 serialization errors, avoiding write hotspots through UUID primary keys, and leveraging 'AS OF SYSTEM TIME' for low-latency follower reads. By incorporating these best practices, the skill ensures that database interactions are optimized for horizontal scale and global distribution.

주요 기능

015 GitHub stars
02PostgreSQL compatibility gap identification and mitigation
03Mandatory transaction retry logic for SQLSTATE 40001 errors
04Non-blocking asynchronous schema change implementations
05Distributed-safe primary key patterns using UUIDs
06Multi-region optimization with follower reads and locality awareness

사용 사례

01Developing globally distributed applications requiring serializable isolation
02Migrating existing PostgreSQL services to CockroachDB clusters
03Optimizing database performance for high-concurrency write workloads