You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add QueryHint support for database optimization (#177)
Add QueryHint support for OceanBase database optimization with parallel
execution and query timeout hints.
## Key Features:
- QueryHint dataclass with parallel and query_timeout parameters
- SQL hint generation for OceanBase database optimization
- Added to collection.get(), query(), and hybrid_search() methods
- Comprehensive test coverage across all database modes
- Full documentation with usage examples
## Usage:
from pyseekdb.client.query_types import QueryHint
query_hint = QueryHint(parallel=4, query_timeout=5.0)
collection.get(ids=['1', '2'], query_hint=query_hint)
Made with [Cursor](https://cursor.com)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Introduced QueryHint as a client-side option to tune
collection.query(), get(), and hybrid_search() (parallelism, timeout,
vector index control). When provided, hint text is integrated into
generated queries and can affect execution plans.
* **Documentation**
* Docstrings and examples updated to show QueryHint usage.
* **Tests**
* Added integration tests covering QueryHint scenarios for query, get,
and hybrid_search.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
0 commit comments