Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[FR] Add equivalent to SequentialGuidValueGenerator

Đang mở
#850 1 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 2 ngày

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

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
38/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ệ
python, sql
Lĩnh vực
databases

Hướng nghiên cứu

The issue names no files or tests. Start by looking for existing UUID or value-generation support in the Python driver and its tests; clarify whether the equivalent should be a generator class or a function. Done means an official option addresses SQL Server’s GUID ordering concern and its behavior is covered by tests.

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

Mô tả

triage needed
Is your feature request related to a problem? Please describe.

Since MSSQL orders UNIQUEIDENTIFIER fields differently than (e.g. v7) UUIDs would be ordered, a system that generates its UUIDs in application code will suffer from index fragmentation as described here.

Describe the solution you'd like

An equivalent to the SequentialGuidValueGenerator provided in EF, be it as a generator class or a function.

Describe alternatives you've considered

One alternative would be to roll my own generator by constructing UUIDv7s and then shuffling the bytes around so that the timestamp data moves to the end. I would strongly prefer to use an "official" solution.

Ngôn ngữ chính
Python
Star
479
Fork
62
Merge trung bình
3 ngày 1 giờ
Pull request đã merge (30 ngày)
26

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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 microsoft/mssql-python

Tất cả issue của microsoft/mssql-python

Issue tương tự

Thêm issue về Python

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.