Skip to content

Commit

Permalink
[Bug] Fix the memory expand 10~1000x of compression algorithm (#5504)
Browse files Browse the repository at this point in the history
Fix the memory expand 10~1000x of compression algorithm in load and compaction
  • Loading branch information
HappenLee authored Mar 12, 2021
1 parent 543ed46 commit e9a73ee
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions be/src/olap/rowset/segment_v2/page_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ Status PageIO::compress_page_body(const BlockCompressionCodec* codec, double min
double space_saving = 1.0 - static_cast<double>(buf.size()) / uncompressed_size;
// return compressed body only when it saves more than min_space_saving
if (space_saving > 0 && space_saving >= min_space_saving) {
// shrink the buf to fit the len size to avoid taking
// up the memory of the size MAX_COMPRESSED_SIZE
buf.shrink_to_fit();
*compressed_body = buf.build();
return Status::OK();
}
Expand Down
3 changes: 1 addition & 2 deletions docs/en/administrator-guide/bucket-shuffle-join.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
```
---
{
"title": "Bucket Shuffle Join",
Expand All @@ -24,7 +23,7 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
```

# Bucket Shuffle Join

Bucket Shuffle Join is a new function officially added in Doris 0.14. The purpose is to provide local optimization for some join queries to reduce the time-consuming of data transmission between nodes and speed up the query.
Expand Down
2 changes: 2 additions & 0 deletions docs/zh-CN/administrator-guide/bucket-shuffle-join.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
{
"title": "Bucket Shuffle Join",
"language": "zh-CN"
}
---

<!--
Licensed to the Apache Software Foundation (ASF) under one
Expand Down

0 comments on commit e9a73ee

Please sign in to comment.