假如有下面两张表 public class Main { public int Id{get;set;} public string Name{get;set}; public virtual ICollection<Detail> Details{get;set;} } public class Detail { public int Id{get;set;} public int MainId{get;set;} public string Desc{get;set;} [ForeignK…
MYSQL千万级数据量的优化方法积累https://m.toutiao.com/group/6583260372269007374/?iid=6583260372269007374 MySQL 千万级的大表要怎么优化(读写分离.水平拆分.垂直拆分)https://m.toutiao.com/group/6582313710360986126/?iid=6582313710360986126 Mysql分库分表方案http://mp.weixin.qq.com/s?__biz=MzI4Njc5Nj…
一.建立数据库及数据表结构 CREATE SCHEMA IF NOT EXISTS `oauth2` DEFAULT CHARACTER SET utf8 ; USE `oauth2` ; -- ----------------------------------------------------- -- Table `oauth2`.`clientdetails` -- ----------------------------------------------------- CREATE…