Skip to content

Commit f3f8432

Browse files
authored
Merge pull request #250 from mcarmonaa/improvement/rename-unstable-squash-env-var
Rename env var GITBASE_UNSTABLE_SQUASH_ENABLE
2 parents 8949f5e + a59a341 commit f3f8432

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
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/cmd/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const (
1919
ServerHelp = ServerDescription + "\n\n" +
2020
"The squashing tables and pushing down join conditions is still a\n" +
2121
"work in progress and unstable,disable by default can be enabled\n" +
22-
"using a not empty value at UNSTABLE_SQUASH_ENABLE env variable.\n\n" +
22+
"using a not empty value at GITBASE_UNSTABLE_SQUASH_ENABLE env variable.\n\n" +
2323
"By default when gitbase encounters and error in a repository it\n" +
2424
"stops the query. With GITBASE_SKIP_GIT_ERRORS variable it won't\n" +
2525
"complain and just skip those rows or repositories."
@@ -36,7 +36,7 @@ type Server struct {
3636
Password string `short:"P" long:"password" default:"" description:"Password used for connection"`
3737

3838
// UnstableSquash quashing tables and pushing down join conditions is still
39-
// a work in progress and unstable. To enable it, the UNSTABLE_SQUASH_ENABLE
39+
// a work in progress and unstable. To enable it, the GITBASE_UNSTABLE_SQUASH_ENABLE
4040
// must not be empty.
4141
UnstableSquash bool
4242
// IgnoreGitErrors by default when gitbase encounters and error in a

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)