Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

The Rules of Scalable database

1,920 views

Published on

Published in: Technology

The Rules of Scalable database

  1. 1. The Rules of Scalable Database 4 Web Site Fenng@dxy.comWednesday, October 31, 12
  2. 2. No PL/SQL • 剥离业务逻辑 ( B/S vs. C/S ) • SPOFWednesday, October 31, 12
  3. 3. SQL • 更⼩小的执⾏行成本(Cost) • 更少的执⾏行频率 • 更稳定的执⾏行计划Wednesday, October 31, 12
  4. 4. Benchmark • 端到端的基准测试 (Benchmark) • SQL Trace / Tkprof /10046... not enoughWednesday, October 31, 12
  5. 5. DB 不是消息系统 • 消息队列持久化 • 应⽤用场景 RDBMS vs NoSQL(MongoDB)Wednesday, October 31, 12
  6. 6. 存储合适的内容 • RDBMS 是 RDBMS • 选择合适的字段、数据类型 • 尽量避免操作 Blob 字段Wednesday, October 31, 12
  7. 7. 反范式设计 • 适当反范式 严格遵守 3NF 是缘⽉⽊木求⻥鱼 • 是否有⾜足够的设计能⼒力,看有多⼤大的能 ⼒力做反范式设计 • 拥抱冗余,做好 Meta 数据管理Wednesday, October 31, 12
  8. 8. 分区 • 合理利⽤用分区(Partition) 分区解决的问题 全局索引与可维护性 • Partition 与性能Wednesday, October 31, 12
  9. 9. Sharding • ⽔水平 vs. 垂直分⽚片 • 分布式事务: No Oracle XA • Oracle 0; MySQL +1; PostgreSQL +2Wednesday, October 31, 12
  10. 10. 新特性 • 作为伪技术的那些特性(Cursor_Sharing) • 试验性质的新特性 • 杀⼿手级特性Wednesday, October 31, 12
  11. 11. IOPS • Tape is Dead • Disk is Tape • Flash is Disk 固态盘(SSD)与 PCI-E Flash,与 Flash Storage 以及使⽤用 Flash 作为 Cache 的各种可能 • RAM Locality is KingWednesday, October 31, 12
  12. 12. MAA • Maximum Availability Architecture • Data Guard 最佳实践Wednesday, October 31, 12
  13. 13. Scalable People • 业务能⼒力扩展 • 技术能⼒力扩展Wednesday, October 31, 12
  14. 14. 案例分析:12306Wednesday, October 31, 12
  15. 15. 推荐⼏几本书Wednesday, October 31, 12
  16. 16. Q/AWednesday, October 31, 12

×