gpt4 book ai didi

android - 什么是 Realm DB 中的托管/非托管对象?

转载 作者:太空宇宙 更新时间:2023-11-03 12:27:04 26 4
gpt4 key购买 nike

Realm DB 中的术语 Managed ObjectUnmanaged Object 是什么意思?我到处搜索这个词,我找到了这些链接 quora & managedObject .但仍然不确定。

我知道这很简单,但在 Realm 文档中没有任何解释。

最佳答案

我在 Realm 文档中找到了一些解释。

FAQ/What is the difference between a normal Java object and a Realm object?

Instances of Realm objects can be either managed or unmanaged.

  • Managed objects are persisted in Realm, are always up to date and thread confined. They are generally more lightweight than the unmanaged version as they take up less space on the Java heap.
  • Unmanaged objects are just like ordinary Java objects, they are not persisted and they will not be updated automatically. They can be moved freely across threads.

关于android - 什么是 Realm DB 中的托管/非托管对象?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47859078/

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