Use cases Comparison chart ZooKeeper Consul NewSQL (Cloud Spanner, CockroachDB, TiDB) Using etcd for metadata Using etcd for distributed coordination The name “etcd” origin...
Troubleshooting Overview Troubleshooting Overview If you run into issues with CockroachDB, there are a few initial steps you can always take: Check your logs for errors rel...
Troubleshoot SQL Behavior SELECT statement performance issues Query is always slow Query is sometimes slow Cancelling running queries Low throughput Single hot node INSERT/UP...
Common Table Expressions Synopsis Parameters Overview Nested WITH clauses Data modifying statements Known limitations Referring to a CTE by name more than once See also ...
Database binding Database binding The database object has the Database.bind() method. It is used for attaching declared entities to a specific database. If you want to play wi...
Cost-Based Optimizer How is cost calculated? View query plan Types of statements supported by the cost-based optimizer Table statistics Controlling automatic statistics Query ...