# KDB-X Release Notes

*This page details the latest features and improvements released to KDB-X.*

## KDB-X 5.0.20261023

**Release date**: 2026-10-23

### NUC (Not Upwardly Compatible)

- The SQL interface (`s.k_`) is no longer embedded in the executable. It is now a separate download on the downloads portal, and the installer places it in `q/`. The `s)` prompt and `.s.init` load it from there as before:
    ```q
    q).s.init[]   / loads q/s.k_, signals an error if s.k_ is not present
    q)t:([]til 3)
    s)select * from t
    x
    -
    0
    1
    2
    ```

### New

- `xcol` now accepts a dictionary as its right argument, renaming its keys:
    ```q
    q)([a:`c;b:`d]) xcol ([a:10;b:20])
    c| 10
    d| 20
    ```

- `xcols` now accepts a dictionary as its right argument, reordering its keys:
    ```q
    q)`c xcols ([a:1;b:2;c:3])
    c| 3
    a| 1
    b| 2
    ```

### Fixes and improvements

- For minute, second, time, timestamp, and timespan, converting from a string now returns null when the value overflows the type. For example:
    ```q
    q)"U"$"71582789:00"               / was 00:44, now 0Nu
    q)"V"$"596524:00:00"              / was -**:28:16, now 0Nv
    q)"T"$"1111111111:00:00.000"      / was -**:36:52.608, now 0Nt
    q)"P"$"2020.12.01D11111111111111" / was 2064.10.26D06:34:55.000000000, now 0Np
    q)"N"$"106751D23:47:16.9"         / was -106751D23:47:16.809551616, now 0Nn
    ```

- Since 2026.10.02, `([]1 2s)` could crash. The parse error is restored.

- The `\p` error message could be corrupted when evaluated with protected evaluation, for example `@[{value"\\p 5/3"};::;::]`.

- A crash could occur when loading a script on timeout or `SIGINT`.

- The `system` call to expunge could crash if the namespace was not a dictionary with symbol keys:
    ```q
    q).z.pg:{value x};z0:.z;.z:1 2;r:system"x .z.pg";.z:z0;  / previously crashed
    ```

## KDB-X 5.0.20261015

**Release date**: 2026-10-15

### NUC (Not Upwardly Compatible)

- Matched x86's prior behavior on all platforms when converting F to I/J type, to return null consistently when F is outside the target integer range, including division by zero.
    ```q
    q)3i div 0i   / x86 gave 0Ni, arm gave 0i; now 0Ni everywhere
    ```

### New

- Use `setenv` to unset an environment variable with a `::` value, for example `` setenv[`foo;::] `` or `` setenv[`bar][] ``.

- You can delete top-level namespaces, for example `` delete ns from ` ``.

- `min`, `max`, `mins`, `maxs`, and the dyadic `&` and `|` now work on guids, which were already comparable and sortable. Ordering is lexicographic over the 16 bytes, matching `<`, `>`, `asc`, and `desc`. Byte vectors behave the same way.

    The null guid `0Ng` is all-zero bytes, so it's the smallest guid. It participates in these operations rather than being skipped the way a numeric null is. For example:
    ```q
    q)g:0Ng,"G"$("00000000-0000-0000-0000-000000000003";"00000000-0000-0000-0000-000000000001")
    q)min g
    00000000-0000-0000-0000-000000000000
    q)max g
    00000000-0000-0000-0000-000000000003
    q)mins g
    00000000-0000-0000-0000-000000000000 00000000-0000-0000-0000-000000000000 00000000-0000-0000-0000-000000000000
    q)g&reverse g
    00000000-0000-0000-0000-000000000000 00000000-0000-0000-0000-000000000003 00000000-0000-0000-0000-000000000000
    q)select min g, max g by s from ([]s:`a`a`b;g)
    s| g                                    g1
    -| -------------------------------------------------------------------------
    a| 00000000-0000-0000-0000-000000000000 00000000-0000-0000-0000-000000000003
    b| 00000000-0000-0000-0000-000000000001 00000000-0000-0000-0000-000000000001
    ```

    On an empty guid vector, these return the extreme values, as they do for other empty typed vectors:
    ```q
    q)min "g"$()
    ffffffff-ffff-ffff-ffff-ffffffffffff
    q)max "g"$()
    00000000-0000-0000-0000-000000000000
    ```

    `mmin` and `mmax` follow, because they are defined in terms of `&` and `|`:
    ```q
    q)2 mmin g
    00000000-0000-0000-0000-000000000000 00000000-0000-0000-0000-000000000000 00000000-0000-0000-0000-000000000001
    ```

    Other arithmetic on guids (`+ - * % sum prd avg`) continues to signal a `type` error.

### Fixes and improvements

- Fixed `raze` of mixed dicts and non-dicts applying `value` to the non-dicts, for example `raze(([]);"\\nuclear_apocalypse")`.

- Fixed `hopen` of an empty symbol (or a string beginning with a null character) sometimes not throwing `` `type ``.

- Fixed a crash (`wsfull` / `SIGSEGV`) in `raze` of a list containing a partitioned table stub. It now signals `'splay`.
    ```q
    q)string raze (1;flip `a`b!`tab;2)   / was a crash, now 'splay
    ```

- Fixed a memory leak on each call of `-38!`.

- Fixed a memory leak in `cor`, `cov`, `wsum`, and `wavg` when the second parameter fails to convert to float keyed table op failure (`'mismatch`/`'type`), e.g. against a dict of the wrong shape, caused the reference to not be released. For example:
    ```q
    q)k:([k:1 2]v:3 4); do[10;@[{k+x};`a`b!1 2;::]]; -16!k
    ```

- Fixed `deal` on guid to have a limit (1099511627776) matching `roll`, to prevent a crash.
    ```q
    q)-1152921504606846977?0Ng   / ended the process
    `
    ```

- Fixed a leak on `'length` in keyed table `upsert`/`insert` with a list.
    ```q
    q)k:([k:1 2]v:3 4); w:1 2 3; do[10;@[{x upsert y}k;w;::]]; -16!w   / refcount grows by 10
    ```

- Fixed the limit check being applied in `take` when x is a vector that includes zero.
    ```q
    q)0W 1#til 3
    'limit
    q)0W 0#til 3     / segfault; now 'limit
    q)1 0W 0#til 3   / segfault; now 'limit
    ```

- Fixed a bug where a compressed interprocess communication (IPC) message that overstated its size could read past the receive buffer.
    ```q
    q)-9!@[-18!2000#0x11;8 9 10 11;:;0xa0860100] / 'badmsg
    ```

- Fixed `time.minute` grouping overflow near the end of the time range (any time at or beyond `` `time$2147460000 ``)
    ```q
    q)t:([]time:`s#`time$2147460000 2147460000;v:1 2);
    q)(select sum v by time.minute from t)~select sum v by minute:`minute$time from t   / was 0b, now 1b
    ```

- Fixed a crash caused by a view with no expression (for example, `a::`). It now returns generic null.

- Fixed an issue where, in rare cases, file read errors did not include the operating system (OS) error message.

## KDB-X 5.0.20261002

**Release date**: 2026-10-02

### NUC (Not Upwardly Compatible)

- Undocumented C functions `addr`, `conn`, `host`, `rcv`, and `snd` are no longer exposed.

- `-16!x` (ref count) now returns a `long` instead of an `int`.

### New

- IPv6 enhancement: initial options to help deployment to IPv4-only or IPv6-only environments, enabled through two environment variables:
    - `KX_SERVER_IP_FAMILY` - {`ipv4`|`ipv6`|`dual`}. Defaults to `ipv4`.
      The process listens for connections of the specified type. In `dual` mode, the process listens for IPv4 and IPv6 connections on the same port, provided the interface used to listen on is the wildcard interface (0000:0000:0000:0000:0000:0000:0000:000), which is the default when no interface is specified.
      When using IPv6, you can specify an optional interface as an IPv6 address by enclosing it in square brackets on the command line, for example, `q -p [0000:0000:0000:0000:0000:0000:0000:0000]:5000`.
    - `KX_CLIENT_IP_FAMILY` - {`ipv4`|`ipv6`}. Defaults to `ipv4`.
      All connections made by the process use IPv4 or IPv6. Note that IPv6 addresses can't be used in IPv4 mode and vice versa.

- `.z.A` now returns the current IPv6 address with a null GUID if no IPv6 address is found. As with `.z.a`, when invoked in an IPC callback, it returns the IPv6 address of the client, or null if the client is IPv4.

- `.z.a` now returns -1 during an IPC callback if the client is IPv6.

- `.Q.host` can perform an IPv6 lookup when its parameter is a GUID representation of an IPv6 address, for example:
    ```q
    q).Q.host"G"$""G"$"00000000000000000000000000000001"
    ```

- Calls to `hopen`, one-shot requests, HTTP requests, and WebSocket requests can specify an IPv6 address by enclosing it in square brackets, for example:
    ```q
    q)h:hopen `$":[0000:0000:0000:0000:0000:0000:0000:0001]:5000"
    q).Q.hg "http://[0000:0000:0000:0000:0000:0000:0000:0001]:5000/"
    q)r:(`$":ws://[0000:0000:0000:0000:0000:0000:0000:0001]:5000")"GET / HTTP/1.1\r\nHost: 127.0.0.1:5000\r\n\r\n"
    ```

- License files can be set to an IPv6 address in addition to IPv4 addresses.

- Elements of generic lists (and similar objects) are now freed in reverse order, reducing allocation fragmentation and memory use, for example:
    ```q
    q)s:{10?" "}each til 10000000;s:()
    q).Q.gc[]
    536870912 / was: 469762048
    q).Q.w[]`heap
    67108864  / was: 134217728
    ```

- The maximum reference count is now ~4 billion (was ~2 billion).

### Fixes and improvements

- Reassigning system namespaces (an unsupported operation) could lead to a seg-fault.

- The string of a projection no longer truncates the function to the console size, for example:
    ```q
    q)system"c 5 5";-1 string{"aaaaaaaa",y}1;
    {"aaaaaaaa",y}[1]
    ```

- On 32-bit platforms, an error thrown from `.z.ph` was sent to the client as "(null)".

- Casting a dictionary, and using `like` on a dictionary, gave incorrect results if all dictionary values were chars, for example, `"J"$([a:"1";b:"2"])` or `([a:"a";b:"b"])like"ab"`.

- Integer division on the long type could give wrong results, for example, `-9007199254740993 div 9007199254740993`.

- Integer division on the long type could ignore null, for example, `0W div 0N`.

- Fixed a crash when appending to an existing zstd-compressed file where none of the existing blocks in the file were compressed because zstd couldn't reduce the bytes from the original size. The crash only occurred when this was the first operation using zstd for a newly spawned instance.

- Fixed an incorrect release date in the `.z.v` version and the seg-fault message.

## KDB-X 5.0.20260723

**Release date**: 2026-07-23

### New

- Improved `mmu` performance, for example:
    ```q
    q)\t:10 x mmu flip x:380 70000#1.0
    28199 / Previously: 36162
    ```

### Fixes and improvements

- Fixed float constants within tolerance being collapsed in functions, for example:
    ```q
    q){distinct 10.0000000099999,10.000000009999993429}[]
    ```

- Fixed incorrect results from dictionary key-matching operations that compared keys using tolerance, for example:
    ```q
    q)(1 1.00000000000002 2 2.0000000000002!10 20 30 40)+1.00000000000002 1 2 2.0000000000002!1 2 3 4
    1| 12 / Previously returned 11
    1| 21 / Previously returned 22
    2| 33
    2| 44
    q){x+y}'[1 1.00000000000002 2 2.0000000000002!10 20 30 40;1.00000000000002 1 2 2.0000000000002!1 2 3 4]
    1| 12 / Previously returned 11
    1| 21 / Previously returned 22
    2| 33
    2| 44
    q)(1 1.00000000000002 2 2.0000000000002!b):1.00000000000002 1 2 2.0000000000002!1 2 3 4;b
    2 1 3 4 / Previously returned 1 2 3 4
    q)0 1 0 1'[1 1.00000000000002 2 2.0000000000002!1 2 3 4;1.00000000000002 1 2.0000000000002 2!5 6 7 8]
    'domain / Previously returned 1 6 3 8
    q){[x;y;z]x}/[0;1 1.00000000000002 2 2.0000000000002!1 2 3 4;1.00000000000002 1 2.0000000000002 2!5 6 7 8]
    'domain / Previously returned 0
    ```

- Fixed a seg-fault when exiting the debugger after indexing into a list whose first element was an unloaded table, for example:
    ```q
    q)(enlist flip`a`b!`t)1 2
    ```

## KDB-X 5.0.20260706

**Release date**: 2026-07-06

### New

- Added the ability to enable or disable compression for outgoing IPC data on a specified handle using the two-argument form of `.Q.ipc`. Pass the handle and a dictionary containing a `z` key with a Boolean value. For example:
    ```q
    q).Q.ipc[h;([z:0b])] / Disable compression for handle h
    ```

    When enabled, standard compression rules still apply: data must exceed 2,000 bytes and compress to less than half its original size.

### Fixes and improvements

- Fixed `select`, `meta`, `update`, and similar operations incorrectly using secondary processes to load columns from splayed or partitioned tables in distributed `peach` mode (a negative `-s` value). Since kdb+ 4.1 2021.03.30.

- Fixed the profiler leaving its target in a stopped state when the target read compressed data.

## KDB-X 5.0.20260501

**Release date**: 2026-05-01

### Fixes and improvements

- Fixed incorrect result when computing the average of more than 2,147,483,647 rows from a partitioned table, caused by integer overflow since v3.3.
    ```q
    q)(`:T/2000.01.01/t/;`:T/2000.01.02/t/) set\: ([]1073741824#1b)
    q)\l T/
    q)select avg x from t
    ```

- Fixed a hang on exit in `kxline` when a child process was running (for example, through `\q`) or when `on-demand/telemetry` was enabled.

- Fixed inconsistent handling of ``a&/`s#b`` and ``a|/`s#b`` which has been igoring the seed value for non-empty arrays since v3.1.
    ```q
    q)0&/`s#1 2 3
    ```


## KDB-X 5.0.20260410

**Release date**: 2026-04-10

### NUC (Not Upwardly Compatible)

> **Note — Not backward compatible. Changes existing behavior.**
>
>
- `.Q.lim` now returns a dictionary with the current and limit values, with memory in MiB, for example:
    ```q
    q).Q.lim[]
           | cur lim
    -----  | ---------
    cores  | 8   0W
    threads| 0   4
    mem    | 64  16384
    conns  | 0   8
    ```

### Fixes and improvements

- `kxline`:
    - Now restores terminal state after `SIGCONT` (for example, `^Z` followed by `fg`).
    - Fixed a seg-fault when output included terminal escape sequences (for example, `-1@`).
    - Now handles UTF-8 correctly.
- `match`: fixed a seg-fault on `anymap` and pre-3.6 mapped nested data, for example:
    ```q
    q)(a;b):get`:foo set (1;0x0000)
    ```

## KDB-X 5.0.20260401

**Release date**: 2026-04-01

### NUC (Not Upwardly Compatible)

> **Note — Not backward compatible. Changes existing behavior.**
>
>
- The `QINIT` file is no longer loaded in protected eval.

- The empty path ```:`` is now consistently treated as an invalid path. Previously its interpretation varied by operation and platform.

- Error messages when loading a file in the wrong format now include `'parse`, for example:
    ```q
    q)get`:foo 1:0x000000
    'parse `:foo
      [0]  get`:foo 1:0x000000
           ^
    ```

### New

- `\l .:path/to/file.q` and ``.Q.rp`:.:path/to/file.txt`` now resolve paths relative to file currently being loaded
- Additional optional env variables for TLS connections (requires OpenSSL 1.1.0 or above):
    - `KX_SSL_MINPROTOCOL`: sets the minimum supported protocol. Valid values are `SSLv3`, `TLSv1`, `TLSv1.1`, `TLSv1.2`, `TLSv1.3`, and `None` (no limit). Default is `TLSv1`.
    - `KX_SSL_MAXPROTOCOL`: sets the maximum supported protocol. Valid values are `SSLv3`, `TLSv1`, `TLSv1.1`, `TLSv1.2`, `TLSv1.3`, and `None` (no limit).
    - `KX_SSL_CIPHERSUITES`: sets the available ciphersuites for `TLSv1.3`. Accepts a colon-separated list of ciphersuite names in order of preference. This list is combined with any configured `TLSv1.2` ciphers (`KX_SSL_CIPHER_LIST`). To list available ciphers on your system, run `openssl ciphers -s -tls1_3`.
- `ss` now works with byte or boolean lists, which disables wildcards, for example:
    ```q
    q)0x01020304 ss 0x0203
    ,1
    q)"aasa?s" ss "x"$"a?s"
    ,3
    q)00110011b ss 1001b
    ,3
    ```

### Fixes and improvements

- `anymap`: fixed `'type` being thrown for `like enlist"*"` even when all elements were strings, for example:
    ```q
    q)get[`:v set ("abc";"def")]like enlist"*"
    11b
    ```
- Fixed a seg-fault when using `"\n"$`, for example:
    ```q
    q)"\n"$("123";"456")
    'type
    ```
- Partitioned functional select was stripping the sorted attribute from step dictionaries, for example:
    ```q
    q)`:HDB/2026.02.10/test/ set([]time:0 2 4);
    q)system"l HDB";
    q)?[test;();0b;`time`bucket!(`time;(`s#1 3!`closed`open;`time))]
    time bucket
    -----------
    0
    2    closed
    4    open
    ```
- Fixed a hang on IPC connections where the user/password was not authorized (for example, `.z.pw` configured to return `0b`) when using `inetd` or `systemd`. Since 2025.11.13.

- `raze` now elides copies for both leading and trailing empty lists.

- `.Q.bv`: fixed increased runtime when run on a segmented table with a table missing from the same partition across segments. Since 2025.11.25.

- On Windows, fixed `'OS reports: Access is denied.'` occurring when running with multiple threads and memory-mapping multiple compressed files of different sizes, for example, when querying data across a partition.

- `x*/y`: fixed incorrect result when `x` is a byte or short value. Since kdb+ 3.3, for example:
    ```q
    q)0x01*/0x01020304 /Previously returned 0Ni
    24i
    q)1h*/1 2 3 4h /Previously returned 0Ni
    24i
    ```

## KDB-X 5.0.20260122

**Release date**: 2026-01-22

### New

- Windows license check includes an additional check of comparing with `hostname.domainname` where `domainname` is retrieved from the DNS associated with the local computer. Linux/macOS already perform this check. This is in addition to the windows lookup of the host/domain via IP. For more details, refer to [ComputerNameDnsDomain](https://learn.microsoft.com/en-us/windows/win32/api/sysinfoapi/nf-sysinfoapi-getcomputernameexa).

- License error due to host mismatch now contains extra information (domain and DNS). For example:

    === "Behavior before change"
        ```bash
        license error: host testbox
        ```

    === "Behavior after change"
        ```bash
        license error: host testbox.domain host.docker.internal
        ```

- `.z.e` dictionary has an additional entry with key `LOCAL_CERT` when a local certificate is in use. This is in addition to the peer certificate info already presented in `CERT`. It contains info on the local certificate which was selected during the connection handshake ``(`SUBJECT`ISSUER`SERIALNUMBER`NOTVALIDBEFORE`NOTVALIDAFTER)``.

### Fixes and improvements

- Pressing `Ctrl+C` on Windows stopped the console from responding. Since Windows 8.
- Old-style kdb+ on demand licences would signal `timeout reporting -- exiting`. Since 5.0.20251113.
- With `kxline`, exiting could:
    - Cause last output not to be printed.
    - Seg-fault when attempting to write history.

## KDB-X 5.0.20251218
**Release date**: 2025-12-18

### New

- [`kxline`](../how_to/basics/embedded-line-editor-kxline.md) doesn't add empty lines to history.

### Fixes and improvements

- `setenv` could corrupt memory if length of `envvar` name plus `value` is one less than a power of two.
- In very rare cases, sorting could hang. Since 3.5.
- Upserting a sorted column without ```s#`` attribute to a sorted splayed column is now `append` when applicable.

- `.q_` and `.k_` files are now also loaded from db root when loading a database.

- When running `.Q.bv` against a multi-segmented table, with a table missing from the same partition across segments, could result duplicate entries in `.Q.vt`. Now checks for duplicates for reduction in memory.

- `kxline` always restores the terminal state, for example, after a seg-fault.


## KDB-X General Availability
**Release date**: 2025-11-17


This release marks the general availability (GA) of KDB-X, along with the new Community Edition license.

This is a major milestone as KDB-X is now fully supported for production use, and we’re thrilled to introduce the Community Edition, which is free for both personal and commercial use, making it easier than ever to get started.

This release includes all the features released during Public Preview and more! Some of the highlights:

1. [Parquet Support](#1-parquet-support)
2. [Modules](#2-modules)
3. [Alternative to `rlwrap`](#3-alternative-to-rlwrap)
4. [Visualization](#4-visualization)
5. [MCP Server](#5-mcp-server)
6. [VS Code](#6-vs-code-support)

### 1. Parquet Support

A new Parquet module `pq` is now available, introducing native support for executing queries on Parquet files, leveraging partition and row-group pruning to minimize processed data. See [`Parquet`](../modules/parquet/overview.md) for more details.

### 2. Modules

KDB-X now includes native module support which introduces primitives to modernize library handling and safety through import aliasing. This gives users a standardized way of organizing, managing, and distributing code within their organization and the wider KDB-X community.  See the [Module Management](../modules/module-framework/overview.md) overview page for more details.

This release also includes our first set of KDB-X and open-source [modules](../modules/module-index.md#module-manifest):

* [`Parquet`](../modules/parquet/overview.md)
* [`object storage`](../modules/objstor/overview.md)
* [`kurl`](../modules/kurl/introduction.md)
* [`REST`](../modules/rest-server/overview.md)
* [`AI Libaries`](../modules/ai-libs/ai-libs-indexes-overview.md)

### 3. Alternative to `rlwrap`

KDB-X now includes an [embedded line editor](../how_to/basics/embedded-line-editor-kxline.md): `kxline`. Linux/macOS users no longer need to separately install `rlwrap` to enhance their terminal productivity.

### 4. Visualization

KDB-X now integrates with KX Dashboards, enabling real-time data visualization. See the [Dashboards overview](../integrations/dashboards.md) for more details.

### 5. MCP Server

This release includes the KDB-X MCP Server integration, enabling natural language interaction through AI tools (for example, Claude, GPT, Gemini). See the [MCP Server overview](../integrations/mcp-server.md) for more details.

### 6. VS Code Support

This release adds VSCode IDE support for KDB-X including first time installation with the KDB-X Community Edition.

Head to the [KDB-X Tutorials](https://github.com/KxSystems/tutorials) page to begin experimenting with the new features, and be sure to review the [KDB-X Roadmap](../releases/kdb-x-roadmap.md) to see what's coming next!

## KDB-X Public Preview release

**Release date**: 2025-10-22

The following are the highlights of this release:

1. [Modules](#1-modules)
2. [Dashboards](#2-dashboards)

### 1. Modules

The following enhancements have been made for modules:

* **Modules framework:** Added a new framework for creating and administering modules. This gives users a standardized way of organizing, managing, and distributing code within their organization and the wider KDB-X community.
  See the [Module Management](../modules/module-framework/overview.md) overview page for more details.

* **New modules available:** The following modules are now available for Public Preview:
    * [`object storage`](../modules/objstor/overview.md)
    * [`kurl`](../modules/kurl/introduction.md)
    * [`REST`](../modules/rest-server/overview.md)

* **AI Library enhancements:** Added support for advanced [AI libraries](../ref/ai-libs/ai-libraries-overview.md), enabling:
    * [semantic search](../modules/ai-libs/search-algorithms-overview.md) on unstructured data
    * [Time Series Similarity Search (TSS)](../modules/ai-libs/tss-algorithms-overview.md)

KX will continue to roll out new modules designed to power and simplify your KDB-X development journey.

### 2. Dashboards

KDB-X now integrates with KX Dashboards, enabling real-time data visualization.
See the [Dashboards overview](../integrations/dashboards.md) for more details.


## KDB-X Public Preview release
**Release date**: 2025-06-25

The following are the highlights of this release:

1. [Community license support](#1-community-license-support)
2. [`.Q.lim` resource limits](#2-qlim-resource-limits)
3. [Limit improvements](#3-limit-improvements)
4. [Versioning and startup](#4-versioning-and-startup)
5. [Configuration file support](#5-configuration-file-support)
6. [Embedded components: `q.k` and `kxsql`](#embedded-components-qk-kxsql)
7. [Telemetry](#7-telemetry)
8. [Console enhancements](#8-console-enhancements)
9. [Model Context Protocol (MCP) Server](#9-model-context-protocol-mcp-server)

### 1. Community license support

Support has been added for the new community `kc.lic` license with embedded resource limits: cores, threads, memory, and connections.

### 2. `.Q.lim` resource limits

`.Q.lim[]` returns resource limits and current usage:
```q
q).Q.lim[]
       | cur lim
-----  | ---------
cores  | 8   0W
threads| 0   4
mem    | 64  16384
conns  | 0   8
```

### 3. Limit improvements

Several limit improvements were added:

1. Core limit checked on startup versus CPU affinity.
2. Thread limit restricts secondary threads:
```bash
$ q -s 9
'max number of secondary threads 8
```

Multi-threaded input on negative ports is disabled:
```bash
$ q -p -4321
'-port disabled
```

3. Memory limit enforces heap safety:
```q
q)b:til 100000000
q)do[20;a,:b]
'stop
```

Once breached, individual operations are limited to a 64MB stack:
```q
q)til 10000000
'stop
```

Variable assignment is blocked:
```q
q)c:1
'noupdate: `. `c
```

Delete operations are allowed for recovery:
```q
q)delete a from `.
q)c:1
q)til 10000000
0 1 2 3 4 ..
```

4. The `conns` limit restricts simultaneous IPC connections:
```q
q)hopen each 8#1234;
q)hopen 1234
'conn
```

> **Note**
>
> Applies to IPC, HTTP, and `sd1()` main-loop connections.
>
### 4. Versioning and startup

`.z.v` exposes environment defaults:

* `QCFG` → `$HOME/.kx/config`
* `QHOME` → one level above executable
* `QLIC` → empty string → checks `QHOME`
* `QINIT` → `q.q`

Example:
```bash
$ ~/.kx/bin/q
q).z.v
version|"0.1.0t"
QCFG   |"/home/homer/.kx/config"
QHOME  |"/home/homer/.kx"
QLIC   |""
QINIT  |"q.q"
```

### 5. Configuration file support

Define key=value pairs in `~/.kx/config`:
```bash
QLIC=/tmp/kdbx/lic
QINIT=kdbx.q
```

Inspect values:
```q
q).Q.cfg
```

Override config path via environment:
```bash
QCFG=~/.kx/config2 q
```

Or via `-v` flag (highest precedence):
```bash
q -v ~/.kx/config3
```

Single-character keys represent command-line options:
```bash
e=1
p=1234
c=25 100
```

Explicit flags override config:
```bash
q -p 4321
```

### <a name="embedded-components-qk-kxsql"></a>6. Embedded components: `q.k` and `kxsql`

`q.k` is now embedded:
```q
q).Q.qk
```

`kxsql` can be initialized with:
```q
q).s.init[]
```

Use SQL inline:
```q
q)t:([]a:1 2 3;b:4 5 6)
q)t~.s.e"select * from t"
```

Release date:
```q
q).s.rel
2025.01.16
```

**Related content:** [KX SQL Interface](https://code.kx.com/insights/core/sql.html)

### 7. Telemetry

Check status:
```q
q).Q.tel[]
1b
```

### 8. Console enhancements

Auto-size rows and columns:
```q
q)\c
25 80i
q)\c 50 0N
q)\c
```

Explicit `0N` required for row/column separation.

Invalid values now produce domain errors:
```q
q)\c aa bb
'domain
```

### 9. Model Context Protocol (MCP) Server

Adds support for KDB-X MCP Server integration, enabling natural language interaction through AI tools (Claude, GPT, Gemini).
See the [MCP Server overview](../integrations/mcp-server.md) for more details.

---

## NUC (Not Upwardly Compatible)

> **Note — Not backward compatible. Changes existing behavior.**
>
>
1. **Licenses:** search path no longer includes current working directory.
2. **Scripts:** search path includes `$QHOME/q/`.
3. **Libraries:** search path includes `$QHOME/lib/`.
4. **Standardized license errors:**
```q
'license error: no license loaded
'license error: daemon connection failed
'license error: daemon timeout
'license error: daemon returned error
```


Come back soon and try out more features and improvements as we add them to KDB-X!
