Re: The speed of 'Scan' could be accelerated!

2018-04-10 Thread Andrew Wong
Hi 何李夫, Just making sure I understand your point: In MaterializingIterator::MaterializeBlock(), we iterate through all of the column predicates, and for each one, we start from the beginning of the column block. Your point is that upon evaluating a single column predicate, we may have some rows t

The speed of 'Scan' could be accelerated!

2018-04-10 Thread helifu
Hi all, I read the function of ‘MaterializingIterator::MaterializeBlock’ carefully, and found that there is something we can do. If we adjust the ‘cur_idx_’ in ‘CFileSet::Iterator’ to the valid left of ‘dst->selection_vector’ after each loop of predicate evaluation, we could skip reading some u