我可以在 Realm 中跨线程使用忽略的 属性 吗?

Can I use an ignored property across threads with Realm?

对于线程之间共享的对象(通过持久化和查询),在一个线程中对被忽略的 属性 所做的更改是否会在另一个线程中可见?

To share objects between threads or re-use them between app launches you must persist them to a Realm ... all changes you make to it will be persisted (and must be made within a write transaction). Any changes are made available to other threads that use the same Realm when the write transaction is committed.

http://realm.io/docs/cocoa/0.91.1/#writes

看起来这不适用于被忽略的属性。每个线程的对象实例都有自己的被忽略 属性 副本,一个线程中的更改不会影响任何其他线程。是吗?

正确。当您通过重新查询从另一个线程访问一个 RLMObject 时,它将是该对象的一个​​新实例,因此被忽略的属性将不会随该对象一起携带。

也就是说,只要您不尝试访问任何 Realm 支持的属性(否则将触发 RLMException),您可以从一个线程到另一个线程并继续在新线程上访问其忽略的属性。