databendlabs / databend

๐——๐—ฎ๐˜๐—ฎ, ๐—”๐—ป๐—ฎ๐—น๐˜†๐˜๐—ถ๐—ฐ๐˜€ & ๐—”๐—œ. Modern alternative to Snowflake. Cost-effective and simple for massive-scale analytics. https://databend.com
https://docs.databend.com
Other
7.71k stars 732 forks source link

chore(storage): hook recluster avoid scan all segments #16498

Closed zhyass closed 1 day ago

zhyass commented 3 days ago

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

Summary

  1. avoid scan all segments when do hook recluster
  2. recluster will compact the small block and segments.
  3. insert will trigger compact and recluster.

Tests

Type of change


This change isโ€‚Reviewable

zhyass commented 3 days ago

The new commit, PTAL @dantengsky https://github.com/datafuselabs/databend/pull/16498/commits/260874a24772ce6f48195343d119aecb83e8b182