# Configure Wasm

Use the following global variables to configure the Code Engine for Wasm extensibility:

| Variable Name                   | Description                                                                                                                                                                | Default Value                      |
| ------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------- |
| `enable_wasm`                   | Specifies if a user can create or call Wasm UDFs/TVFs.                                                                                                                     | `ON`                               |
| `wasm_max_compiled_module_size` | Specifies the maximum size (in bytes) that a compiled Wasm module can use.                                                                                                 | `26214400`(25MB)                   |
| `wasm_max_linear_memory_size`   | Specifies the maximum linear memory (in bytes) that an individual Wasm module can use. This will further constrain UDF/TVF-specific`GROW TO`values.                        | `16777216`(16MB or 256 Wasm pages) |
| `wasm_max_raw_module_size`      | Specifies the maximum size (in bytes) of Wasm modules that may be loaded. The size is defined as the size of raw, uncompiled data passed in the`CREATE FUNCTION`statement. | `26214400`(25MB)                   |

***

Modified at: March 25, 2025

Source: [/db/v9.1/reference/code-engine-powered-by-wasm/configure-wasm/](https://docs.singlestore.com/db/v9.1/reference/code-engine-powered-by-wasm/configure-wasm/)

(An index of the documentation is available at /llms.txt)
