gpt4 book ai didi

java - @Preload 的作用是什么(Jira Activity 对象)?

转载 作者:行者123 更新时间:2023-12-01 23:11:52 24 4
gpt4 key购买 nike

我使用 Activity 对象来保存数据。这个注解具体有什么作用呢?

附注我找到了这个描述(https://ecosystem.atlassian.net/browse/AO-486):

We hit the problem several times where AO will load each field of an object by a separate SQL query: https://jira.atlassian.com/browse/CONFDEV-21100 https://jira.atlassian.com/browse/CONFDEV-21206 It can be bypassed with @Preload annotation on a class but preloading is not a default behaviour. Obviously not preload introduces a big performance hit when client code needs more than one attribute. I would imagine preloading would be a sensible default given that it would cause very little overhead

最佳答案

@Preload”用于立即加载实体的所有字段。默认情况下,行为是仅急切加载 ID 字段并延迟加载实体内的其他字段。

关于java - @Preload 的作用是什么(Jira Activity 对象)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58371737/

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