> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-fix-nav-issues.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# direct 字典布局

> 一种不经过缓存、直接查询源的字典布局。

<div id="direct">
  ## direct
</div>

字典不存储在内存中，而是在处理请求时直接访问源。

字典键的类型为 [UInt64](/zh/reference/data-types/int-uint)。

支持除本地文件外的所有 [源](/zh/reference/statements/create/dictionary/sources/overview#dictionary-sources) 类型。

配置示例：

<Tabs>
  <Tab title="DDL">
    ```sql theme={null}
    LAYOUT(DIRECT())
    ```
  </Tab>

  <Tab title="配置文件">
    ```xml theme={null}
    <layout>
      <direct />
    </layout>
    ```
  </Tab>
</Tabs>

<br />

<div id="complex_key_direct">
  ## complex\_key\_direct
</div>

这种存储类型用于复合[键](/zh/reference/statements/create/dictionary/attributes#composite-key)，与 `direct` 类似。
