PodioItem::update() slow rate limit
Hi devs,
I just into a problem with an integration because of the Podio API rate limit, and I can't find a way around it. My client imports huge Excel lists of prospects into a Podio app, and then every morning they want to assign leads to different reps based on different criteria. They also want to be able to revoke this assignment later on if they wish to do so.
Now assigning 100 leads to each rep (5 of them for now) 1 by 1 in Podio would take the manager his entire day, so I have an integration where the manager logs in, the leads are cached 500 at a time with PodioItem::filter() in a loop, cached for 24 hours using cron jobs every night, so the rate-limit is spared.
So he logs in and sees all leads and can filter them, etc, then select a few at a time, select the rep and click "assign". This sends the job to a queue where I have to do a PodioItem::update() call for each lead to change the "assigned to" contact field. But PodioItem::update() is affected by the slow rate-limit and so I can only do 250 leads / hour and that isn't enough. The changes have to happen rather quickly in the morning before the reps start making calls, I can't really throttle it and span it across 2-3 hours.
Is it possible to consider making PodioItem::update() use the regular rate-limit of 5000 / hour? 250 is really low for this use case. Another idea would be to allow "mass update" where I could pass an array of item_ids and updated fields, and it would apply the same change to all items. This could be limited at 250 / hour and that would make sense in this scenario, it could be handled as a batch in Podio.
Thanks,
-
The rate limits article tells you how to apply for a higher rate limit: https://developers.podio.com/index/limits
Please sign in to leave a comment.
Comments
3 comments