[FEATURE] _routing suppport

Đang mở
#5,859 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java
Lĩnh vực
search

Hướng nghiên cứu

Start with feature #1805, which the issue says added parsing of _routing in SQL queries, and find where that value is currently consumed when the query is sent to OpenSearch. The open question is how strict the query shape must be before routing applies, which the maintainers have not decided. Done means a query with _routing reaches only the matching shards, shown by a test, and the design choice is agreed in the thread first.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

Is your feature request related to a problem?
Feature #1805 added support for including _routing in a query, but omitted a significant piece of that functionality, namely actually routing the request to only those specific shards. The sql plugin is incredibly useful, but being unable to use shard routing makes it perform rather poorly on our cluster. Each tenant has specific shards, and running the sql queries across the entire cluster instead of the tenant specific shards adds lots of unnecessary time to the queries.

What solution would you like?
When _routing is included in a sql query, route the opensearch query to the appropriate shards instead of the entire cluster. I'm fine with very strict query structure (e.g. requiring this expression to be the first in the WHERE clause or something like that)

What alternatives have you considered?
We are probably going to end up with using an alias per tenant in our cluster because using the sql query with the alias seems to do the routing correctly. however, that adds a lot of extra maintenance burden (an alias per tenant), and we are unsure how that will scale as the number of tenants grows.

Do you have any additional context?
Nope

Ngôn ngữ chính
Java
Star
176
Fork
237
Merge trung bình
2 ngày 12 giờ
Pull request đã merge (30 ngày)
34

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của opensearch-project/sql

Tất cả issue của opensearch-project/sql

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.