Parse.com - PFObject 上的 saveAll 是否占 1 个 API 调用? [英] Parse.com - saveAll on PFObject does it account for 1 API call?

查看:11
本文介绍了Parse.com - PFObject 上的 saveAll 是否占 1 个 API 调用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 IOS 应用程序,并且由于免费层的 30/秒请求限制,我想确保我最低限度地使用 API 请求到 parse.com.有人可以澄清一下,如果在一个方法调用[PFObject saveAll:NSArray]"中保存不同的 PFObjects 相当于 1 个 API 调用或多个 API 调用.

I have an IOS app and I want to make sure I minimally use the API request to parse.com due to the 30/sec request limitation on the free tier. Could some one please clarify if saving disparate PFObjects in one method call "[PFObject saveAll:NSArray]" amounts to 1 API call or multiple API calls.

我需要一个明确的答案,因为互联网上的任何地方都没有明确的答案.Parse.com 支持请帮忙,因为如果它考虑了许多 API 请求,我想以不同的方式对实现进行编码,在这种情况下,我将确保在单独保存每个 pfObject 时有更好的错误处理.

I need a definite answer since there is no clear answer anywhere on the interwebs. Parse.com support please help since I want to code the implementation differently if it accounts for many API requests in which case I will make sure I have better error handling when I save each pfObject separately.

谢谢.

推荐答案

据我所见,使用 Parse,将许多 PFObjects 帐户保存为 1 个 API 调用.

From what I have seen using Parse, saving many PFObjects accounts as 1 API call.

然而,我不知道的是,如果对一次保存的对象数量有任何限制,仍然被视为 1 个 API 调用.

However, the thing I don't know about is that if there are any limits on the number of objects to be saved at once and still be considered as 1 API call.

另外我建议你自己测试一下.尝试一次保存多个对象,并在仪表板中查看您的 API 调用数量如何变化.

Also I recommend that you test it yourself. Try saving multiple objects at once and see how your API calls number change in the dashboard.

请注意,如果一个对象失败(例如对象不存在),批处理操作将整体失败.

Please note that batch operations will fail as a whole if one object fails (e.g. object does not exist).

这篇关于Parse.com - PFObject 上的 saveAll 是否占 1 个 API 调用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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