gpt4 book ai didi

coldfusion - 如何限制实体的 cfdump 大小

转载 作者:行者123 更新时间:2023-12-04 01:06:47 24 4
gpt4 key购买 nike

当我们转储 ORM 实体时,是否可以限制 cfdump 的大小?似乎 cfdump 将尝试加载和显示与被转储的实体相关/关联的所有实体(如多对一或一对多关系中所定义)。有时,转储单个实体可能会导致输出超过 100 mb(即兆字节)。

最佳答案

根据documentation ,看来您要找的是 top范围。

<cfdump  
var = "#variable#"
output = "browser|console|file"
format = "text|html"
abort = "true|false">
label = "text"
metainfo = "yes|no"
top = "number of rows|number of levels"
show = "columns|keys"
hide = "columns|keys"
keys = "number of keys to display for structures"
expand = "yes|no"
showUDFs = "yes|no">

top Optional 9999 The number of rows to display. For a structure, this is the number of nested levels to display.



我已经很久没有使用 CFM 了,但您可能也对 keys 感兴趣

keys Optional 9999 For a structure, the number of keys to display.

关于coldfusion - 如何限制实体的 cfdump 大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45271968/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com