-
Notifications
You must be signed in to change notification settings - Fork 133
IGNITE-27147 Optimise compaction of multiple delta files #7067
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
base: main
Are you sure you want to change the base?
Conversation
| ByteBuffer buffer = getThreadLocalBuffer(pageSize); | ||
|
|
||
| DeltaFilePageStoreIo[] newerDeltaFiles = filePageStore.getCompletedDeltaFiles() | ||
| .stream().filter(file -> file.fileIndex() > deltaFilePageStore.fileIndex()) |
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.
| .stream().filter(file -> file.fileIndex() > deltaFilePageStore.fileIndex()) | |
| .stream() | |
| .filter(file -> file.fileIndex() > deltaFilePageStore.fileIndex()) |
...ry/src/main/java/org/apache/ignite/internal/pagememory/persistence/compaction/Compactor.java
Show resolved
Hide resolved
| } | ||
|
|
||
| boolean shouldSkip = false; | ||
| for (int i = 0; i < pointers.length; i++) { |
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.
As soon as you'll get rid of pointer array you can replace this loop with foreach loop
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.
Discussed, doesn't take into account loop above
https://issues.apache.org/jira/browse/IGNITE-27147