Skip to content

Commit b8c8ee3

Browse files
committed
Rename env var GITBASE_UNSTABLE_SQUASH_ENABLE
Signed-off-by: Manuel Carmona <[email protected]>
1 parent 8949f5e commit b8c8ee3

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ SELECT hash, author_email, author_name FROM commits LIMIT 2;
5353

5454
### Environment variables
5555

56-
| Name | Description |
57-
|:-----------------------------|:----------------------------------------------------|
58-
| `BBLFSH_ENDPOINT` | bblfshd endpoint, default "127.0.0.1:9432" |
59-
| `GITBASE_BLOBS_MAX_SIZE` | maximum blob size to return in MiB, default 5 MiB |
60-
| `GITBASE_BLOBS_ALLOW_BINARY` | enable retrieval of binary blobs, default `false` |
61-
| `UNSTABLE_SQUASH_ENABLE` | **UNSTABLE** check *Unstable features* |
62-
| `GITBASE_SKIP_GIT_ERRORS` | do not stop queries on git errors, default disabled |
56+
| Name | Description |
57+
|:---------------------------------|:----------------------------------------------------|
58+
| `BBLFSH_ENDPOINT` | bblfshd endpoint, default "127.0.0.1:9432" |
59+
| `GITBASE_BLOBS_MAX_SIZE` | maximum blob size to return in MiB, default 5 MiB |
60+
| `GITBASE_BLOBS_ALLOW_BINARY` | enable retrieval of binary blobs, default `false` |
61+
| `GITBASE_UNSTABLE_SQUASH_ENABLE` | **UNSTABLE** check *Unstable features* |
62+
| `GITBASE_SKIP_GIT_ERRORS` | do not stop queries on git errors, default disabled |
6363

6464
## Tables
6565

@@ -95,7 +95,7 @@ To make some common tasks easier for the user, there are some functions to inter
9595

9696
## Unstable features
9797

98-
- **Table squashing:** there is an optimization that collects inner joins between tables with a set of supported conditions and converts them into a single node that retrieves the data in chained steps (getting first the commits and then the blobs of every commit instead of joinin all commits and all blobs, for example). It can be enabled with the environment variable `UNSTABLE_SQUASH_ENABLE`.
98+
- **Table squashing:** there is an optimization that collects inner joins between tables with a set of supported conditions and converts them into a single node that retrieves the data in chained steps (getting first the commits and then the blobs of every commit instead of joinin all commits and all blobs, for example). It can be enabled with the environment variable `GITBASE_UNSTABLE_SQUASH_ENABLE`.
9999

100100
## Examples
101101

cli/gitbase/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func main() {
1616
parser := flags.NewNamedParser(name, flags.Default)
1717

1818
parser.AddCommand("server", cmd.ServerDescription, cmd.ServerHelp, &cmd.Server{
19-
UnstableSquash: os.Getenv("UNSTABLE_SQUASH_ENABLE") != "",
19+
UnstableSquash: os.Getenv("GITBASE_UNSTABLE_SQUASH_ENABLE") != "",
2020
SkipGitErrors: os.Getenv("GITBASE_SKIP_GIT_ERRORS") != "",
2121
})
2222

0 commit comments

Comments
 (0)