简体   繁体   English

从jsonstore集合中删除文档后,对象为空

[英]Null objects after removing document from jsonstore collection

How can I remove objects from collection using remove() function without leaving null objects? 如何使用remove()函数从集合中删除对象而又不留下空对象? When we delete the object using remove() it will be replaced by null. 当我们使用remove()删除对象时,它将替换为null。 I don't want to keep the null objects in collection because of memory/performance. 由于内存/性能,我不想将null对象保留在集合中。

All the production ready versions of the JSONStore API (ie iOS, Android, WP8 and Windows 8) remove documents from the persistent store when the document being removed is not marked as dirty. 当要删除的文档未标记为脏文件时,JSONStore API的所有生产就绪版本(即iOS,Android,WP8和Windows 8)都会从持久性存储中删除文档。 You can use the markClean API to ensure the document is not dirty prior to calling the remove API to really remove it from the persistent store. 您可以使用markClean API来确保文档不脏,然后再调用remove API将其真正从持久性存储中删除。

If you think there is a defect somewhere you may open a PMR here . 如果您认为某处存在缺陷,则可以在此处打开PMR。 If want to request new functionality you may open a feature request here . 如果要请求新功能,可以在此处打开功能请求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 IBM Worklight JSONStore | 从收藏夹中删除文档并从内存中删除 - IBM Worklight JSONStore | Remove Document from Collection and erase it from memory 无法替换JSONStore集合内的文档 - Failing to replace a document inside a JSONStore collection 如何从Worklight JSONStore获取对象,其中特定属性attribute的值为null或为空 - How to get objects from worklight JSONStore where value of specific attribute attribute is null or empty 首次初始化JSONStore集合 - First initialization of a JSONStore Collection 推送包含文件的文档时出现JSONStore错误 - JSONStore error when push a collection with documents with files 从Worklight 5.0.6迁移后,IBM Worklight 6.0-预览中出现JSONStore错误 - IBM Worklight 6.0 - JSONStore error in preview after migrating from Worklight 5.0.6 即使删除了该应用程序,来自Worklight的JSONStore数据/文档是否仍可在设备(iPhone / Android)上保留? - Does the JSONStore data/documents from Worklight persist on device (iPhone/Android) even after deleting the App? 我添加它后,无法使用JSONStore - Unable to use JSONStore even after I added it 删除JSONStore集合中的所有文档(不使用removeCollection()) - Remove all documents in a JSONStore collection (without using removeCollection() ) 从2个MobileFirst应用程序之间的JSONStore传输数据 - Transfer data from JSONStore between 2 MobileFirst applications
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM