在Parse.com脚法未完成 [英] Pin method in Parse.com doesn't finish

查看:103
本文介绍了在Parse.com脚法未完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此​​搜索和阅读后

<一个href=\"http://stackoverflow.com/questions/31083150/parse-sdk-pininbackground-callback-does-not-return?noredirect=1#comment51755175_31083150\">Parse SDK pinInBackground回调不返回

<一个href=\"http://stackoverflow.com/questions/30091640/android-parse-com-pinallinbackground-large-data-very-slow-on-device-and-crash-on\">Android Parse.com pinAllInBackground大数据的设备和系统崩溃的genymotion

我使用的 Parse.com 检索数据的远程的对象,然后向的本地数据存储的引脚列表的。
我已经初始化解析,以使使用本地数据存储 Parse.enableLocalDatastore(本);
方法我试过:
parseObject.pin()
parseObject.pin(字符串字符串)
parseObject.pinInBackground(SaveCallback saveCallback)

I am using Parse.com to retrieve data from remote then pin list of objects to the local datastore. I already initialized parse to enable local data store using Parse.enableLocalDatastore(this); Methods I tried: parseObject.pin() parseObject.pin(String string) parseObject.pinInBackground(SaveCallback saveCallback)

ParseObject.pinAll(名单&LT; parseObjects&GT; parseObjects)
ParseObject.pinAll(串串,列表和LT; parseObjects&GT; parseObjects)

这些方法sometomes作品完美,有时如果同步脚法UI线程挂起,直到永远,使用它在后台运行的异步针法的时候,在参数中提供的回调方法有时也从来没有所谓。
是否有任何情况下导致了针方法不起作用?

Those methods sometomes works perfectly and sometimes if a synchronous pin method the UI thread hangs forever, and when using an asynchronous pin method which works in background, the callback method provided in the parameters sometimes never called. Is there any circumstances leads to that the pin method doesn't work?

推荐答案


  • 我的问题是,我有一个列包含指针数组。
    在课堂上_user我添加了一个名为列最爱

再说说用户1分配用户2为收藏,和用户2用户1分配也为收藏。

Say that User1 assigned User2 as favorite, and User2 assigned User1 also as favorite.

根据本

钉扎的parseObject是递归的,就像储蓄,所以任何物体
  由你牵制也将固定一个指向。

Pinning a ParseObject is recursive, just like saving, so any objects that are pointed to by the one you are pinning will also be pinned.

然后用户1调用引脚进入无限循环,因为它似乎它重新针已经固定的对象。

Which is mentioned in the documentation of parse then calling pin in User1 will go to infinite loop as it seems that it re-pin already pinned objects.

这篇关于在Parse.com脚法未完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆