[FR] Add equivalent to SequentialGuidValueGenerator
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Python
- 星标
- 479
- 派生
- 62
- 平均合并
- 3 天 1 小时
- 30 天内合并 PR
- 26
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/mssql-python 的其他 Issue
-
area: bulk-copy triage needed
难度 2/5 1-3 小时 新手友好度 70/100
microsoft/mssql-python#843 · 1 条评论 ·
维护者通常 2 天内回复
-
triage needed
难度 4/5 3-5 天 新手友好度 22/100
microsoft/mssql-python#849 · 1 条评论 ·
维护者通常 2 天内回复
-
triage needed
难度 4/5 3-5 天 新手友好度 20/100
microsoft/mssql-python#848 · 1 条评论 ·
维护者通常 2 天内回复
-
triage needed
难度 4/5 3-5 天 新手友好度 35/100
microsoft/mssql-python#846 · 1 条评论 ·
维护者通常 2 天内回复
-
macOS: encrypted connections fail after Homebrew moved the `openssl` alias to `openssl@4`可能已有人在做 @bewithgaurav 于 18 天前认领。 未关闭area: packaging-platform bug triage needed
难度 4/5 3-5 天 新手友好度 55/100
microsoft/mssql-python#826 · 2 条评论 · 已指派 1 人 ·
维护者通常 2 天内回复
查看 microsoft/mssql-python 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 67/100
webrecorder/warcio#209 ·
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
Jeffy123-zhu/logspecter#20 ·
-
难度 1/5 1 小时以内 新手友好度 85/100
维护者通常 1 天内回复