3

互联网大厂都是单表查询的吗?表设计都尽量没有外键的吗?

 2 years ago
source link: https://www.oschina.net/question/2716479_2324661
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

互联网大厂都是单表查询的吗?表设计都尽量没有外键的吗?

鬼魅东阳 发布于 昨天 16:44
阅读 124

互联网大厂都是单表查询的吗?表设计都尽量没有外键的吗?

一般互联网的大都这样单表查询,需要前端配合实现类似的惰性加载。如果是QPS不高的系统联合查询方便。既然是团队规矩那就执行咯。。。

我是做游戏的,目前所有查询都是单表查询,然后程序去校验,程序服务器可以多开,但是数据库你想多表联合那就要在一个数据库里,哪怕是主从读写分离也是很耗数据库性能的,不值得,不如多个服务器自己校验数据,这个准确而且分担了数据库计算压力


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK