Skip to content
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

Add index creation on orderby columns #7436

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kpan2034
Copy link
Contributor

Previously, for chunks without a segmentby column specified in the compression settings, no indexes were created. This change allows indexes to be created on orderby columns only in this scenario.

Copy link

@mkindahl, @akuzm: please review this pull request.

Powered by pull-review

@kpan2034 kpan2034 marked this pull request as draft November 12, 2024 23:53
@kpan2034 kpan2034 self-assigned this Nov 16, 2024
@antekresic
Copy link
Contributor

Lets make sure we don't run segmentwise recompression on chunks without segmentby because currently its suboptimal vs doing a full recompress.

@kpan2034 kpan2034 force-pushed the compression-indexes branch from cf5d71c to b68e994 Compare November 26, 2024 00:50
@kpan2034 kpan2034 requested review from svenklemm and akuzm November 26, 2024 00:59
@kpan2034 kpan2034 marked this pull request as ready for review November 26, 2024 00:59
Copy link
Contributor

@antekresic antekresic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets disable segmentwise recompression for these chunks for now, until we can optimize it in the near future.

@kpan2034 kpan2034 force-pushed the compression-indexes branch from b68e994 to 36f796f Compare January 7, 2025 22:56
Copy link

codecov bot commented Jan 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.28%. Comparing base (59f50f2) to head (0e14a8a).
Report is 688 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7436      +/-   ##
==========================================
+ Coverage   80.06%   82.28%   +2.21%     
==========================================
  Files         190      238      +48     
  Lines       37181    43725    +6544     
  Branches     9450    10971    +1521     
==========================================
+ Hits        29770    35978    +6208     
- Misses       2997     3405     +408     
+ Partials     4414     4342      -72     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kpan2034 kpan2034 force-pushed the compression-indexes branch 6 times, most recently from 12331c5 to 36d03d6 Compare January 10, 2025 18:19
Previously, for chunks without a segmentby column specified in the
compression settings, no indexes were created. This change allows
indexes to be created on orderby columns only in this scenario.

Since there is no segmentby in the compression settings for these chunks
we also disable segmentwise recompression for them as it is more optimal
to do a full recompression in this case.
@kpan2034 kpan2034 force-pushed the compression-indexes branch from 36d03d6 to 0e14a8a Compare January 10, 2025 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants