当前位置:网站首页>Guid主键
Guid主键
2022-07-07 07:47:00 【算盘】
1、Guid算法(或UUID算法)生成一个全局唯一的Id。适合于分布式系统,在进行多数据库数据合并的时候很简单。
优点:简单,高并发,全局唯一
缺点:磁盘空间占用大
2、Guid值不连续。使用Guid类型做主键的时候,不能把主键设置为聚集索引。因为聚集索引是按照顺序保存主键的,因此用Guid做主键性能差。
边栏推荐
- Gym - 102219J Kitchen Plates(暴力或拓扑序列)
- flink. CDC sqlserver. You can write the DEM without connector in sqlserver again
- Phpcms realizes PC website access to wechat native payment
- Postman interface test VII
- Basic use of JMeter to proficiency (I) creation and testing of the first task thread from installation
- Software modeling and analysis
- Some thoughts on the testing work in the process of R & D
- 企业实战|复杂业务关系下的银行业运维指标体系建设
- 反卷积通俗详细解析与nn.ConvTranspose2d重要参数解释
- ORM model -- creation and query of data records
猜你喜欢
ORM--分组查询,聚合查询,查询集QuerySet对象特性
EXT2 file system
Arcgis操作: 批量修改属性表
Agile course training
Bean 作⽤域和⽣命周期
虚数j的物理意义
字节跳动 Kitex 在森马电商场景的落地实践
Video based full link Intelligent Cloud? This article explains in detail what Alibaba cloud video cloud "intelligent media production" is
Applet sliding, clicking and switching simple UI
Postman interface test II
随机推荐
Advanced function learning in ES6
uboot机构简介
Gauss elimination
Flex flexible layout
Phpcms realizes PC website access to wechat native payment
字节跳动 Kitex 在森马电商场景的落地实践
Bit operation ==c language 2
ES6中的原型对象
Become a "founder" and make reading a habit
Guys, have you ever encountered the case of losing data when Flink CDC reads mysqlbinlog? Every time the task restarts, there is a probability of losing data
Write it into the SR table in the way of flinksql. It is found that the data to be deleted has not been deleted. Refer to the document https://do
2016 CCPC Hangzhou Onsite
单片机(MCU)最强科普(万字总结,值得收藏)
ORM--逻辑关系与&或;排序操作,更新记录操作,删除记录操作
Basic use of JMeter to proficiency (I) creation and testing of the first task thread from installation
Enterprise practice | construction of banking operation and maintenance index system under complex business relations
内存==c语言1
ORM--数据库增删改查操作逻辑
Postman interface test I
Some thoughts on the testing work in the process of R & D