> For the complete documentation index, see [llms.txt](https://doc.duaer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/zh/hosting/scaling/binary-data.md).

# 在 Duaer 里处理二进制数据

处理大文件而不拖慢 Duaer。
## 用文件系统或数据库，不要用内存

节点产出文件时，Duaer 把内容写到配置的二进制存储，执行数据里留下引用；下游需要时再读。这样堆里不必同时驻留每一份附件。

内存模式在 2.0 与 v3 检查中均标为移除。仍设为内存模式时，大文件会直接撑满堆。多进程部署要把存储放在大家都能读到的位置。

队列模式下优先用数据库模式；不要把仅本机可见的临时盘当唯一存储。更多见 [环境变量](/zh/hosting/configuration/environment-variables.md)。
## Questions

### Duaer 二进制数据还放在内存里吗？

默认不放。写到文件系统或数据库，执行里只留引用。内存模式已移除。

