[英]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.