3

I am using Parse with Android. I was using ParseQueryAdapter's API for querying and getting back results from the Parse database. However, the default queries cannot filter the content in the way I want and I am implementing a Parse Cloud Code function to get me the ParseObjects instead. The problem is that by using Cloud Code I have to give up all optimisations build in ParseQueryAdapter, especially cache-ing of results and pagination.

Can someone provide me a way to implement cache-ing for ParseObjects returned through Cloud Code? Thanks in advance!

1 Answer 1

3

Parse released an update to their SDK just 3 days after this question where they added a local datastore feature. This can be used for caching any ParseObjects which are returned from CloudCode. Not the most elegant solution since it does not automatically cache network requests and you need to have all your data in the form of ParseObjects - but definitely makes life easier.

Check out their press release for details - http://blog.parse.com/2014/04/30/take-your-app-offline-with-parse-local-datastore/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.