Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit number of simultaneously dispatched/queued requests #5894

Open
githubbob42 opened this issue May 7, 2019 · 1 comment
Open

Limit number of simultaneously dispatched/queued requests #5894

githubbob42 opened this issue May 7, 2019 · 1 comment

Comments

@githubbob42
Copy link
Owner

Mingle Card: 5674
Narrative

The current sync dispatches all pages for an sobject simultaneously and defers to default browser behavior for managing concurrent requests.

We also set a default timeout of 2 minutes per request, so if there are enough pages it’s possible for entire batches of queued requests to fail.

Acceptance Criteria

Limit the number of simultaneously dispatched requests so that they stay reasonably within browser limits for concurrent requests. This should allow tablets to more likely sync successfully for large syncs.

Analysis

Instead of dispatching all pages at once, break into about 6 chunks and queue requests in each chunk. Multiple sobjects are still processed simultanously so the best we can do is to break up each sobject into 6 chunks but this change is meant to have the most impact when syncing a particularly large number of records for a single sobject (like ginormous pricebooks) that have hundreds of pages of records.

Related Stories

Tasks

{{ table query: SELECT Number, Name, Owner, 'Task Status' WHERE Type = Task and Story = THIS CARD ORDER BY Status }}

Defects

{{ table query: SELECT Number, Name, Owner, 'Status' WHERE Type = Defect and 'Related Story' = THIS CARD }}

Test Plan

Successfully sync using [email protected] on iPad (takes about 20min for full sync)

@githubbob42
Copy link
Owner Author

Pull Request #2736

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant