-
Notifications
You must be signed in to change notification settings - Fork 135
IGNITE-16719. #738
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
IGNITE-16719. #738
Conversation
|
|
||
| private AtomicInteger scanCounter = new AtomicInteger(1); | ||
|
|
||
| private static final int INTERNAL_BATCH_SIZE = 10_000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use configured parameter to define internal batch size?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
naa, not now, and I'd rather use dynamic calculation here.
| retrievedItems.add(item); | ||
|
|
||
| if (retrievedItems.size() % reqAmount == 0) { | ||
| if (reqAmount != Long.MAX_VALUE && retrievedItems.size() % reqAmount == 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What for additional condition reqAmount != Long.MAX_VALUE is added?
Is the condition retrievedItems.size() % reqAmount true in this case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, it's possible to remove given check here. Fixed.
tledkov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK with me
...le/src/main/java/org/apache/ignite/internal/table/distributed/storage/InternalTableImpl.java
Outdated
Show resolved
Hide resolved
…istributed/storage/InternalTableImpl.java Co-authored-by: korlov42 <korlov@gridgain.com>
No description provided.