Skip to content

Reduce aka.ms API batch size and improve efficiency - #5067

Merged
mmitche merged 3 commits into
dotnet:masterfrom
mmitche:like-a-kennedy
Mar 16, 2020
Merged

mmitche merged 3 commits into
dotnet:masterfrom
mmitche:like-a-kennedy

Conversation

@mmitche

@mmitche mmitche commented Mar 16, 2020

Copy link
Copy Markdown
Member

Reduce the batch size to the aks.ms API. We were hitting the maximum
content length in some cases. The content length is 50k, but the maximum
links is 300.
Also change around the way we use the API to first attempt to update the
links, then only if bad request is returned, bucketize and create+update.
This should drastically reduce the total time required for generation.
That said, the time is still not great. A batch of 100 takes ~25 seconds,
so additional optimizations will be coming soon, like making the whole
process more async

Reduce the batch size to the aks.ms API. We were hitting the maximum
content length in some cases. The content length is 50k, but the maximum
links is 300.
Also change around the way we use the API to first attempt to update the
links, then only if bad request is returned, bucketize and create+update.
This should drastically reduce the total time required for generation.
That said, the time is still not great. A batch of 100 takes ~25 seconds,
so additional optimizations will be coming soon, like making the whole
process more async
@mmitche
mmitche requested review from a user and JohnTortugo March 16, 2020 17:01
@mmitche

mmitche commented Mar 16, 2020

Copy link
Copy Markdown
Member Author

@jaredpar @wtgodbe Resolves #5054

@mmitche
mmitche merged commit 8784a7b into dotnet:master Mar 16, 2020
@mmitche
mmitche deleted the like-a-kennedy branch February 9, 2022 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant