本文介绍了Apache Maven、MongoDB和Spring框架的基本使用,包括Maven的项目管理和依赖管理、MongoDB的数据操作以及Spring Data MongoDB的集成示例。详细描述了Maven配置文件的结构、常用命令及其与其他工具的配合,并提供了建立MongoDB环境和使用mongo shell的基本操作指南。还讨论了如何在Spring项目中集成MongoDB,通过Maven依赖配置和Spring上下文设置实现数据存取。
Pegasus: Designing a Distributed Key Value System (Arch summit beijing-2016)涛 吴
?
Pegasus is a high-performance, highly available, and strongly consistent distributed KV storage system developed by Xiaomi, addressing the limitations of existing systems like HBase. The design choices focus on using C++ for better performance, a shared commit log for improved data consistency, and features like automatic failover and flexible data modeling. Pegasus aims to ensure high availability, optimized performance, and an easy-to-use interface while supporting extensive scalability for massive workloads.
25. 应用优化 对数据进行 Sharding :分表,分库 垂直切分:按照业务或产物切分 水平切分:按照数据拆分,比如 mod 或 div 尽量减少查询 可以缓存的就不要查数据库 部分数据可以借助比如 Shpinx 解决 要注意的查询 给需要的字段加上索引,比如需要 WHERE 或者 ORDER BY 的字段 不要 LIKE ‘%key%’ ,不使用索引,可以 LIKE ‘key%’ 如果可以,少使用 SELECT * FROM XX ,尽量查询自己需要的字段 避免使用 JOIN/GROUP BY/DISTINCK INNODB 表不要 count