Skip to content

feat(oceanbase): configurable index params, KEY partitioning, HNSW_BQ cosine support #776

Merged
XuanYang-cn merged 3 commits into
zilliztech:mainfrom
wyfanxiao:oceanbase-client
May 15, 2026
Merged

feat(oceanbase): configurable index params, KEY partitioning, HNSW_BQ cosine support #776
XuanYang-cn merged 3 commits into
zilliztech:mainfrom
wyfanxiao:oceanbase-client

Conversation

@wyfanxiao

Copy link
Copy Markdown
Contributor

Summary

  • Add --create-index-parallel CLI option (default 16) for configurable index build parallelism
  • Add --extra-info-max-size CLI option (default 32, set 0 to omit) for HNSW index
  • Add --partitions CLI option for KEY partitioning (default 0, no partition)
  • Declare thread_safe=False for OceanBase (mysql-connector cursor cannot be shared across threads)
  • HNSW_BQ: remove forced L2 for cosine metric, now supports cosine natively
  • need_normalize_cosine returns False for all index types
  • Remove hardcoded PARALLEL(32) hint from INSERT statement
  • pyproject.toml: add missing pyyaml dependency, fix packages.find to include all subpackages

wyfanxiao added 3 commits May 14, 2026 10:29
… cosine support

- Add --create-index-parallel CLI option (default 16)
- Add --extra-info-max-size CLI option (default 32, set 0 to omit)
- Add --partitions CLI option for KEY partitioning (default 0, no partition)
- HNSW_BQ: remove forced L2 for cosine, now supports cosine natively
- need_normalize_cosine returns False for all index types
- pyproject.toml: add pyyaml dependency, fix packages.find to include all subpackages
@sre-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: wyfanxiao, XuanYang-cn

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@XuanYang-cn
XuanYang-cn merged commit 191b710 into zilliztech:main May 15, 2026
4 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.

3 participants