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

fix: chunked deals fetching in Optimus #1642

Merged
merged 1 commit into from
Oct 16, 2018
Merged

Conversation

3Hren
Copy link
Member

@3Hren 3Hren commented Oct 16, 2018

While we're having constantly increasing the number of deals it may appear, that fetching the entire data set of deals can overflow the allowed gRPC response size.
This commit fixes that behavior by fetching deals chunked.

@3Hren 3Hren added 💩 T: bug This PR/Issue fixes a bug S: Optimus This PR/Issue changes Optimus P: HIGH This PR/Issue has the high priority V: patch This PR/Issue requires patch version to be bumped labels Oct 16, 2018
While we're having constantly increasing the number of deals it may appear, that fetching the entire data set of deals can overflow the allowed gRPC response size.
This commit fixes that behavior by fetching deals chunked.
@3Hren 3Hren changed the title fix: chunked deals fetching fix: chunked deals fetching in Optimus Oct 16, 2018
Copy link
Collaborator

@antmat antmat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM in general

pullLimit = 1000
ordersPreallocateSize = 1 << 13
pullLimit = 1000
preallocateSize = 1 << 13
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better make a note that it is 8 KiB

@3Hren 3Hren merged commit fad597b into master Oct 16, 2018
@3Hren 3Hren deleted the fix/optimus/fetch-deals branch October 16, 2018 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P: HIGH This PR/Issue has the high priority S: Optimus This PR/Issue changes Optimus 💩 T: bug This PR/Issue fixes a bug V: patch This PR/Issue requires patch version to be bumped
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants