[DM] Support range read and lock optimization#140
[DM] Support range read and lock optimization#140flowbehappy merged 12 commits intoDeltaMergeEnginefrom
Conversation
dbms/src/Storages/DeltaMerge/DMVersionFilterBlockInputStream.cpp
Outdated
Show resolved
Hide resolved
dbms/src/Storages/DeltaMerge/DMVersionFilterBlockInputStream.cpp
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Should we return at least one stream? If sorted_ranges is [(+∞, +∞)] (line 227), then we will return 0 stream
There was a problem hiding this comment.
If so, tasks.size() should be 1.
There was a problem hiding this comment.
But here it will end with tasks.size() == 0 if we pass [(Int64::max, Int64::max)]. (Int64::max, Int64::max) intersect (Int64::min, Int64::max) return false in https://github.com/pingcap/tics/pull/140/files#diff-cc98b6f41bd336729fc39462f72a29d3R287
There was a problem hiding this comment.
If user use UInt64 as pk, and pass range between [Int64::MAX~UInt64::MAX] ?
There was a problem hiding this comment.
Yes, we need to considerate this situation. But later https://internal.pingcap.net/jira/browse/FLASH-392
|
/run-integration-tests |
|
/build |
b9d8c38 to
5f16c2f
Compare
|
/run-integration-tests |
* Segment support range scan * Bug fix: ColumnVector insertRangeFrom out of range * Only read tag column when necessary * print more info on sidLowerBound exception * Refactor DeltaMergeBlockInputStream * Optimize DMVersionFilterBlockInputStream, try unroll loops. * Support multi range read * bug fix * Optimize synchronization mechanism between read/write thread, decrease latency. * Fix testes * Address comments * fix typo
* Segment support range scan * Bug fix: ColumnVector insertRangeFrom out of range * Only read tag column when necessary * print more info on sidLowerBound exception * Refactor DeltaMergeBlockInputStream * Optimize DMVersionFilterBlockInputStream, try unroll loops. * Support multi range read * bug fix * Optimize synchronization mechanism between read/write thread, decrease latency. * Fix testes * Address comments * fix typo
* Segment support range scan * Bug fix: ColumnVector insertRangeFrom out of range * Only read tag column when necessary * print more info on sidLowerBound exception * Refactor DeltaMergeBlockInputStream * Optimize DMVersionFilterBlockInputStream, try unroll loops. * Support multi range read * bug fix * Optimize synchronization mechanism between read/write thread, decrease latency. * Fix testes * Address comments * fix typo
* Segment support range scan * Bug fix: ColumnVector insertRangeFrom out of range * Only read tag column when necessary * print more info on sidLowerBound exception * Refactor DeltaMergeBlockInputStream * Optimize DMVersionFilterBlockInputStream, try unroll loops. * Support multi range read * bug fix * Optimize synchronization mechanism between read/write thread, decrease latency. * Fix testes * Address comments * fix typo
* Segment support range scan * Bug fix: ColumnVector insertRangeFrom out of range * Only read tag column when necessary * print more info on sidLowerBound exception * Refactor DeltaMergeBlockInputStream * Optimize DMVersionFilterBlockInputStream, try unroll loops. * Support multi range read * bug fix * Optimize synchronization mechanism between read/write thread, decrease latency. * Fix testes * Address comments * fix typo
* Segment support range scan * Bug fix: ColumnVector insertRangeFrom out of range * Only read tag column when necessary * print more info on sidLowerBound exception * Refactor DeltaMergeBlockInputStream * Optimize DMVersionFilterBlockInputStream, try unroll loops. * Support multi range read * bug fix * Optimize synchronization mechanism between read/write thread, decrease latency. * Fix testes * Address comments * fix typo
* Segment support range scan * Bug fix: ColumnVector insertRangeFrom out of range * Only read tag column when necessary * print more info on sidLowerBound exception * Refactor DeltaMergeBlockInputStream * Optimize DMVersionFilterBlockInputStream, try unroll loops. * Support multi range read * bug fix * Optimize synchronization mechanism between read/write thread, decrease latency. * Fix testes * Address comments * fix typo
* Segment support range scan * Bug fix: ColumnVector insertRangeFrom out of range * Only read tag column when necessary * print more info on sidLowerBound exception * Refactor DeltaMergeBlockInputStream * Optimize DMVersionFilterBlockInputStream, try unroll loops. * Support multi range read * bug fix * Optimize synchronization mechanism between read/write thread, decrease latency. * Fix testes * Address comments * fix typo
* Segment support range scan * Bug fix: ColumnVector insertRangeFrom out of range * Only read tag column when necessary * print more info on sidLowerBound exception * Refactor DeltaMergeBlockInputStream * Optimize DMVersionFilterBlockInputStream, try unroll loops. * Support multi range read * bug fix * Optimize synchronization mechanism between read/write thread, decrease latency. * Fix testes * Address comments * fix typo
* Segment support range scan * Bug fix: ColumnVector insertRangeFrom out of range * Only read tag column when necessary * print more info on sidLowerBound exception * Refactor DeltaMergeBlockInputStream * Optimize DMVersionFilterBlockInputStream, try unroll loops. * Support multi range read * bug fix * Optimize synchronization mechanism between read/write thread, decrease latency. * Fix testes * Address comments * fix typo
* Segment support range scan * Bug fix: ColumnVector insertRangeFrom out of range * Only read tag column when necessary * print more info on sidLowerBound exception * Refactor DeltaMergeBlockInputStream * Optimize DMVersionFilterBlockInputStream, try unroll loops. * Support multi range read * bug fix * Optimize synchronization mechanism between read/write thread, decrease latency. * Fix testes * Address comments * fix typo
* Segment support range scan * Bug fix: ColumnVector insertRangeFrom out of range * Only read tag column when necessary * print more info on sidLowerBound exception * Refactor DeltaMergeBlockInputStream * Optimize DMVersionFilterBlockInputStream, try unroll loops. * Support multi range read * bug fix * Optimize synchronization mechanism between read/write thread, decrease latency. * Fix testes * Address comments * fix typo
* Segment support range scan * Bug fix: ColumnVector insertRangeFrom out of range * Only read tag column when necessary * print more info on sidLowerBound exception * Refactor DeltaMergeBlockInputStream * Optimize DMVersionFilterBlockInputStream, try unroll loops. * Support multi range read * bug fix * Optimize synchronization mechanism between read/write thread, decrease latency. * Fix testes * Address comments * fix typo
* Segment support range scan * Bug fix: ColumnVector insertRangeFrom out of range * Only read tag column when necessary * print more info on sidLowerBound exception * Refactor DeltaMergeBlockInputStream * Optimize DMVersionFilterBlockInputStream, try unroll loops. * Support multi range read * bug fix * Optimize synchronization mechanism between read/write thread, decrease latency. * Fix testes * Address comments * fix typo
Note that there could be performance issues and bugs for this feature. So we currently by default disable this feature and will come back to it when implementing sparse index.