What records will be loaded when CKFetchRecordChangesOperation is called with zero nil?

Will CKFetchRecordChangesOperation

fetch all records from the container?

I was hoping it would download all my posts as I have added many different post types but I am not getting any. I initialized it with a null token.

reference says: The CKFetchRecordChangesOperation object reports changes and deleted records in the specified write zone. Use this work object type to optimize selections for locally managed recordsets. In particular, use it when you maintain a local cache of your write data and you need to periodically sync this cache with the server.

I even ran CKFetchRecordChangesOperation

from another device to rule out the case, only changes made on other devices are reverted.

+3


source to share


1 answer


CKFetchRecordChangesOperation has nothing to do with CKS signature. Instead, it will simply revert all changes to all post types.

The documentation says about the change token:



The change icon from the previous select operation. This token is passed to your fetchRecordChangesCompletionBlock handler during the previous fetch operation. Use this token to limit the returned data to only those changes that have occurred since the last fetch. If you specify nil for this parameter, the operation object retrieves all records and their contents.

So, you just get all the records.

+2


source







All Articles