cockroachdb / cockroachdb/cockroach

sql: Apply recommended cluster settings and sql statements to Docker image via env var

Open
#134,429 4 comments 1 reaction 0 assignees View on GitHub
C-enhancement O-community T-sql-foundations X-blathers-triaged
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

**Is your feature request related to a problem? Please describe.**
Cockroach documentation makes a recommendation regarding additional cluster settings and sql statements but those have to be applied manually. See https://www.cockroachlabs.com/docs/stable/local-testing#use-a-local-single-node-cluster-with-in-memory-storage

**Describe the solution you'd like**
It would be nice to have an env var that once set would apply those improvements automatically.

**Describe alternatives you've considered**
Always let the users declare those improvements.

**Additional context**
[Testcontainers offers a CockroachDb module](https://testcontainers.com/modules/cockroachdb/) and
there is a [PR](https://github.com/testcontainers/testcontainers-go/pull/2869) in Testcontainers for Go in order to apply those improvements but a more portable solution to other Testcontainers implementation would be the env var.

Jira issue: CRDB-44078

Epic CRDB-61003

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.