Yingyi Bu has posted comments on this change.

Change subject: Avoid always merging old components in prefix policy
......................................................................


Patch Set 6:

(1 comment)

https://asterix-gerrit.ics.uci.edu/#/c/1818/6/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-common/src/main/java/org/apache/hyracks/storage/am/lsm/common/impls/PrefixMergePolicy.java
File 
hyracks-fullstack/hyracks/hyracks-storage-am-lsm-common/src/main/java/org/apache/hyracks/storage/am/lsm/common/impls/PrefixMergePolicy.java:

PS6, Line 273:  private Pair<Integer, Integer> 
getMergableComponentsIndex(List<ILSMDiskComponent> immutableComponents) 
> It feels that there're some repeated work done in this method. Because this
To be more accurate:

-- for a new FLUSH-result component Cf, we just need to have a sliding window 
to slide over older FLUSH-result components to identify a mergeable window.  
The window doesn't necessarily include Cf itself since it's prefix-based.  

-- maybe we can change public void diskComponentAdded(final ILSMIndex index, 
boolean fullMergeIsRequested) to
    
   public void diskComponentAdded(final ILSMIndex index, ILSMDiskComponent 
newComponent, boolean resultFromFlush, boolean fullMergeIsRequested)


-- 
To view, visit https://asterix-gerrit.ics.uci.edu/1818
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I464da3fed38cded0aee7b319a35664eae069a2ba
Gerrit-PatchSet: 6
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Luo Chen <[email protected]>
Gerrit-Reviewer: Ian Maxon <[email protected]>
Gerrit-Reviewer: Jenkins <[email protected]>
Gerrit-Reviewer: Jianfeng Jia <[email protected]>
Gerrit-Reviewer: Luo Chen <[email protected]>
Gerrit-Reviewer: Yingyi Bu <[email protected]>
Gerrit-Reviewer: abdullah alamoudi <[email protected]>
Gerrit-HasComments: Yes

Reply via email to