Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/content/doc-surrealdb/cli/env.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ Environment variables can be used to tailor the behaviour of a running SurrealDB
<td scope="row" data-label="Env var"><code>SURREAL_EXPERIMENTAL_GRAPHQL</code></td>
<td scope="row" data-label="Default">false</td>
<td scope="row" data-label="Notes">Enables experimental graphql integration. Still under active development. Using this experimental feature may introduce risks related to breaking changes and security issues.</td>
</tr>
<tr>
<td scope="row" data-label="Env var"><code>SURREAL_GENERATION_ALLOCATION_LIMIT</code></td>
<td scope="row" data-label="Default">20</td>
<td scope="row" data-label="Notes">Limits memory allocation for certain built-in functions (e.g., string::replace) to avoid uncontrolled memory usage. default is 1,048,576 bytes (computed as 2^20).</td>
</tr>
<tr>
<td scope="row" data-label="Env var"><code>SURREAL_HTTP_MAX_ML_BODY_SIZE</code></td>
Expand Down Expand Up @@ -138,6 +143,11 @@ Environment variables can be used to tailor the behaviour of a running SurrealDB
<td scope="row" data-label="Default">1,048,576 concurrent requests</td>
<td scope="row" data-label="Notes">Adds a global limit for concurrent server requests, and introduces a new environment variable</td>
</tr>
<tr>
<td scope="row" data-label="Env var"><code>SURREAL_REGEX_SIZE_LIMIT</code></td>
<td scope="row" data-label="Default">10,485,760</td>
<td scope="row" data-label="Notes">Limits the maximum allowed size (in bytes) for compiled regular expressions. This prevents excessive memory consumption when building complex or very large regex patterns.</td>
</tr>
<tr>
<td scope="row" data-label="Env var"><code>SURREAL_RUNTIME_MAX_BLOCKING_THREADS</code></td>
<td scope="row" data-label="Default">512</td>
Expand Down