Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

13.1 数据建模

游戏数据特点

  • 长期积累(数月/数年)
  • 关联复杂(玩家、物品、战斗)
  • 读写模式不均匀

数据建模原则

  1. 热数据分离:常用数据放Redis
  2. 冷数据归档:历史数据放对象存储
  3. 读写分离:主库写,从库读

真实案例

《梦幻西游》的数据分层架构。