You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 28, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+29Lines changed: 29 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -95,6 +95,35 @@ We support and actively test against certain third-party clients to ensure compa
95
95
-`IFNULL(expr1, expr2)`: If expr1 is not NULL, IFNULL() returns expr1; otherwise it returns expr2.
96
96
-`NULLIF(expr1, expr2)`: Returns NULL if expr1 = expr2 is true, otherwise returns expr1.
97
97
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
+
98
127
## Example
99
128
100
129
`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