docs: section 5.1 states every partition key column is TEXT COLLATE "C", and tables created before v0.1.13 keep the database collation on pk

Đang mở Phù hợp với người mới
#1,412 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 3 ngày

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

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
78/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
markdown, postgresql, rust
Lĩnh vực
databases, documentation

Hướng nghiên cứu

Câu cần sửa nằm trong docs/design/04-component-storage.md, mục 5.1, dòng 390. Hãy đọc gạch đầu dòng 'Sort key storage' ngay bên dưới và TEXT_KEY trong crates/storage-postgres/src/data/ddl.rs để khớp cách diễn đạt phần giới hạn. Việc này hoàn tất khi câu về khóa phân vùng nêu rõ rằng chỉ các bảng được tạo từ v0.1.13 trở đi mới có COLLATE "C" trên pk, và trỏ tới nợ kỹ thuật C-11.

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

Mô tả

docs/design/04-component-storage.md, section 5.1, "Partition key storage" (line 390 on main at 44cd43667): "Partition key values are always stored as TEXT COLLATE "C"."

Tables created before v0.1.13 keep the database collation on pk, as on every other text key column (technical debt C-11 in docs/technical-debt.md, and #641 for the migration). TEXT_KEY in crates/storage-postgres/src/data/ddl.rs says so in its comment: tables created before the constant existed keep the database collation on these columns.

The next bullet of the same section, "Sort key storage", already states that qualification for the sort key columns. The builders put COLLATE "C" on every string key predicate and ORDER BY. So results are byte-ordered on tables created before the columns carried the collation, and the indexes cannot serve the predicates there.

Proposed change: qualify the partition key sentence the same way. For example: "Partition key values are stored as TEXT COLLATE "C" on tables created from v0.1.13 on. Older tables keep the database collation on pk (technical debt C-11)."

Ngôn ngữ chính
Rust
Star
517
Fork
60
Merge trung bình
3 ngày 21 giờ
Pull request đã merge (30 ngày)
116

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 ExtendDB/extenddb

Tất cả issue của ExtendDB/extenddb

Issue tương tự

Thêm issue về Rust

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.