Skip to content

perf(table): search global index fields concurrently#610

Merged
JingsongLi merged 1 commit into
apache:mainfrom
QuakeWang:global-index-concurrency
Jul 26, 2026
Merged

perf(table): search global index fields concurrently#610
JingsongLi merged 1 commit into
apache:mainfrom
QuakeWang:global-index-concurrency

Conversation

@QuakeWang

Copy link
Copy Markdown
Member

Purpose

The global index scanner only parallelized shard reads within a single field. For multi-field AND predicates, indexed fields were still evaluated sequentially, leaving the configured I/O concurrency underutilized.

Brief change log

  • Evaluate independent indexed fields concurrently.
  • Share one scan-scoped semaphore across all shard reads so total I/O concurrency stays within global-index.thread-num.
  • Add regression coverage for result correctness and the shared concurrency limit.

Tests

  • cargo fmt --all -- --check
  • cargo clippy --locked --all-targets --workspace --features fulltext,vortex -- -D warnings
  • cargo test --locked -p paimon --all-targets --features fulltext,vortex

API and Format

Documentation

Signed-off-by: QuakeWang <wangfuzheng0814@foxmail.com>

@JingsongLi JingsongLi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1

@JingsongLi
JingsongLi merged commit 792c9d9 into apache:main Jul 26, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants