-
Notifications
You must be signed in to change notification settings - Fork 412
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
[FLASH-575] Improve the performance of stream operations in DM #296
Conversation
@@ -387,7 +391,7 @@ BlockInputStreams DeltaMergeStore::read(const Context & db_context, | |||
task.ranges, | |||
{}, | |||
max_version, | |||
std::min(expected_block_size, DEFAULT_BLOCK_SIZE)); | |||
std::max(expected_block_size, STABLE_CHUNK_ROWS)); |
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.
Maybe we should use min
rather than max
? The signature is IStorage::read( ..., size_t max_block_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.
Normally expected_block_size = DEFAULT_BLOCK_SIZE (65536)
。While STABLE_CHUNK_ROWS = 8192
。
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.
LGTM
a1f4966
to
4cdd5fa
Compare
/run-integration-tests |
5 similar comments
/run-integration-tests |
/run-integration-tests |
/run-integration-tests |
/run-integration-tests |
/run-integration-tests |
abb41fc
to
94167b4
Compare
/run-integration-tests |
1 similar comment
/run-integration-tests |
/build |
/rebuild |
/run-integration-tests |
/rebuild |
/run-integration-tests |
…ap#296) * do handle range filter in * add status support for DM * compact continue insert * bug fix, and temporary split big insert block * enable split logical * add store restore log * fix lock in PageEntriesVersionSetWithDelta::listAllLiveFiles * disable posix_fadvise in PageStorage * Update default DM settings * optimize DMVersionFilterBlockInputStream * optimize DMVersionFilterBlockInputStream v2 * added some metrics * add dm_insert_max_rows setting * Fix compilation error of TiDB.h * address comment * fix broken unit tests * fix unit tests of DeltaTree * Bug fix: DiskValueSpace::createAppendTask remove data pages by mistake * remove debug code
…ap#296) * do handle range filter in * add status support for DM * compact continue insert * bug fix, and temporary split big insert block * enable split logical * add store restore log * fix lock in PageEntriesVersionSetWithDelta::listAllLiveFiles * disable posix_fadvise in PageStorage * Update default DM settings * optimize DMVersionFilterBlockInputStream * optimize DMVersionFilterBlockInputStream v2 * added some metrics * add dm_insert_max_rows setting * Fix compilation error of TiDB.h * address comment * fix broken unit tests * fix unit tests of DeltaTree * Bug fix: DiskValueSpace::createAppendTask remove data pages by mistake * remove debug code
…ap#296) * do handle range filter in * add status support for DM * compact continue insert * bug fix, and temporary split big insert block * enable split logical * add store restore log * fix lock in PageEntriesVersionSetWithDelta::listAllLiveFiles * disable posix_fadvise in PageStorage * Update default DM settings * optimize DMVersionFilterBlockInputStream * optimize DMVersionFilterBlockInputStream v2 * added some metrics * add dm_insert_max_rows setting * Fix compilation error of TiDB.h * address comment * fix broken unit tests * fix unit tests of DeltaTree * Bug fix: DiskValueSpace::createAppendTask remove data pages by mistake * remove debug code
…ap#296) * do handle range filter in * add status support for DM * compact continue insert * bug fix, and temporary split big insert block * enable split logical * add store restore log * fix lock in PageEntriesVersionSetWithDelta::listAllLiveFiles * disable posix_fadvise in PageStorage * Update default DM settings * optimize DMVersionFilterBlockInputStream * optimize DMVersionFilterBlockInputStream v2 * added some metrics * add dm_insert_max_rows setting * Fix compilation error of TiDB.h * address comment * fix broken unit tests * fix unit tests of DeltaTree * Bug fix: DiskValueSpace::createAppendTask remove data pages by mistake * remove debug code
mange table xxx status
command, to show the metrics about DM table.