This topic was automatically generated from Slack. You can find the original thread here.
Salesforce connector making a huge amount of API calls. I’ve set up a Salesforce connector which I am using as a source. It’s set to run every minute to get field history changes. Instead of the expected ~1 request/min I’m getting multiple requests per second hitting the Salesforce API and causing me to get rate limited:
This is still an issue. We are getting rate limited like crazy. I don’t know why Pipedream is hitting the SF so much. We are only monitoring one object and one field.
Per checking the component code, I see that it do 2 more API calls for each record that has been updated. This is the logic to ensure that the event showing on Pipedream is correct and has all the data you need. I’ve pinged the Pipedream component dev to see if how we can improve this logic, I’ll let you know ASAP when there’s new update
Thank you It seems to become problematic when processing bulk updates. The field history query method returns too many IDs and when pipedream tries to query for them all in one go I think it’s too many connections for SF to handle at once. This process needs to be improved, and maybe queued so that no more than X connections are made to SF at any given time.