Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于主键只使用自增ID的未来问题和隐患 #5

Open
wsky opened this issue Jul 25, 2012 · 0 comments
Open

关于主键只使用自增ID的未来问题和隐患 #5

wsky opened this issue Jul 25, 2012 · 0 comments

Comments

@wsky
Copy link
Member

wsky commented Jul 25, 2012

考虑到私有部署和公用的问题,

自增id对于常规路径的可读性、占位大小等比较有利

但对于迁移是非常麻烦,特别是多个平行来源的混合

考虑做如下变更:主路径依赖使用id,同时生成一个guid作为辅助主键,用于聚合内/外的关联外键使用

@ghost ghost assigned wsky Jul 25, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant