所以说:
COLLECT diff = q.field INTO fielded
是否可以限制fielded
的长度?我意识到有SLICE()
函数,但是也许有一个性能优化LIMIT
?
据我所知,收集后限制将限制差异(组)而不是组内容。
答案 0 :(得分:0)
COLLECT diff = q.field INTO fielded
LET rest = (FOR qx IN fielded[*] LIMIT 4 return qx)
我不知道这是否会导致性能优化。