Retrieve Activities for a Single Lead - Performance Issue

Anonymous
Not applicable

Retrieve Activities for a Single Lead - Performance Issue

Greetings!

I'm having reliably slow request times when retrieving activities for leads using the convention found in this post:
http://developers.marketo.com/blog/retrieve-activities-for-a-single-lead-using-rest-api/

The requests are sometimes taking >30 seconds - this is heavily impacting the UX of our integration. All other requests are coming back well within an acceptable amount of time.

It also doesn't seem to matter how many or which activityTypes/lead/time frame I specify.

Does anyone have any insight into why this might be happening? Is it simply a backend time complexity issue? Or am I missing something.

Thank you so much!
-Dominique Pennington

1 REPLY 1
SanfordWhiteman
Level 10 - Community Moderator

Re: Retrieve Activities for a Single Lead - Performance Issue

We see performance like this whenever there's a lot of internal pagination/cursoring necessary.

Far better to sync activities as a whole and then seek in your internal db.