无需额外往返即可获取对象存储属性

ser*_*aev 3 filenet-p8 filenet filenet-content-engine

我正在使用 IBM FileNet CE API 5.1 并面临性能问题,因为循环中的额外刷新和大量迭代(25000+)。这是代码示例:

for (Document document : documents) {
       ObjectStore objectStore = document.getObjectStore();
       objectStore.refresh(); //round-trip
       String symbolicName = objectStore.get_SymbolicName();

       ...
 }
Run Code Online (Sandbox Code Playgroud)

问题是,刷新前的 objectStore 对象根本没有任何缓存属性,甚至没有对象标识(如果我有我可以创建对象存储缓存以避免在每次迭代中刷新)。

文档可能有不同的对象存储(我正在搜索多个对象存储)。

Unc*_*ter 5

您可以从对象引用中获取对象存储的 id:

document.getObjectReference().getObjectStoreIdentity()
Run Code Online (Sandbox Code Playgroud)