我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

MySQL:替代UUID作为缩放的PK

An intelligent person told me: if your project becomes successful, you just have to make sure you can solve your load-problems by throwing money at them.

So, if my project goes big, I need to make sure it can scale horizontally, meaning get more servers, application- and DB-wise.

This should work in my case except the problem with primary-keys. I use simple auto-increment PKs on all MySQL-tables. Is there an alternative apart from switching to UUIDs (varchar 36)?

Thanks!

近期文章

  • 如何查看域是否正确转发
  • CKEDITOR On Enter Do <br>但保持一条线
  • Cron的工作占用了太多的系统资源
  • php字符串中双引号内的反斜杠
  • 用于删除和添加回来的PHP函数?
  • Zend Framework用户注册 - 添加到db
  • Apache或PHP将我的URL重写为IP地址
  • 如何从变量中的数组中获取所有数据?
  • mysql group by select with condition value
  • 在include path phpstorm中找不到PHPUnit
  • phantomJS在通过PHP执行时不起作用
  • 如何保护我的网站免受SQL注入? [重复]
  • PHP脚本不在MySQL数据库中添加行
  • 注意:未定义的偏移量:0在PHP中使用Array
  • Reply-To标题没有选择php变量
  • 关于vc6.0利用指针交换两字符数组内容的问题。
  • Concrete5管理站点 - 未指定输入文件
  • PHP PDO正确使用JOINS进行mySQL查询
  • 服务器没有给出卷曲代码的任何响应
  • 从非txt fopen文件创建文本框

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华