在docsLazyReferenceField
中:
A really lazy reference to a document. Unlike the
ReferenceField
it will not be automatically (lazily) dereferenced on access. Instead, access will return aLazyReference
class instance, allowing access to pk or manual dereference by usingfetch()
method.
我知道在性能方面有差异,但我不明白为什么?我应该总是用LazyReferenceField
而不是ReferenceField
吗?或者有不同的用例?你知道吗
目前没有回答
相关问题 更多 >
编程相关推荐