Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Commit 4a09621

Browse files
committed
docs: add session and environment variables to README
Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
1 parent c9ee09f commit 4a09621

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,35 @@ We support and actively test against certain third-party clients to ensure compa
9595
- `IFNULL(expr1, expr2)`: If expr1 is not NULL, IFNULL() returns expr1; otherwise it returns expr2.
9696
- `NULLIF(expr1, expr2)`: Returns NULL if expr1 = expr2 is true, otherwise returns expr1.
9797

98+
## Configuration
99+
100+
The behaviour of certain parts of go-mysql-server can be configured using either environment variables or session variables.
101+
102+
Session variables are set using the following SQL queries:
103+
104+
```sql
105+
SET <variable name> = <value>
106+
```
107+
108+
### Memory joins
109+
110+
- `EXPERIMENTAL_IN_MEMORY_JOIN`: if this environment variable is set it will perform all joins in memory.
111+
- `inmemory_joins`: if this session variable is set it will perform all joins in memory.
112+
113+
### Maximum inner join memory
114+
115+
- `MAX_MEMORY_INNER_JOIN`: this environment variable controls in bytes the maximum number of memory that can be consumed by go-mysql-server before switching to multipass mode in inner joins.
116+
- `max_memory_joins`: this session variable controls in bytes the maximum number of memory that can be consumed by go-mysql-server before switching to multipass mode in inner joins.
117+
118+
### Debug
119+
120+
- `DEBUG_ANALYZER`: if this environment variable is set, the analyzer will print debug messages.
121+
122+
### Index creation threads
123+
124+
- `PILOSA_INDEX_THREADS`: this environment variable sets the number of threads used in index creation.
125+
- `pilosa_index_threads`: this session variable sets the number of threads used in index creation.
126+
98127
## Example
99128

100129
`go-mysql-server` contains a SQL engine and server implementation. So, if you want to start a server, first instantiate the engine and pass your `sql.Database` implementation.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy