cassandra Internal data structure
来源:互联网 发布:程序员 书籍 编辑:程序博客网 时间:2024/06/06 03:35
Understanding How CQL3 Maps to Cassandra’s Internal Data Structure ?
http://opensourceconnections.com/blog/2013/07/24/understanding-how-cql3-maps-to-cassandras-internal-data-structure/
https://www.datastax.com/dev/blog/thrift-to-cql3
partition key 类似row key, it is a wide row in cassandra internal storage.
partition 默认partitioner: Murmur3Partitioner: The Murmur3Partitioner uses the MurmurHash function. This hashin g function creates a 64-bit hash value of the partition key. The possible range of hash values is from -2的63次方 to +2的63次方-1 , 这个数字对应的数目可能是个天文数字;
partition设计最重要,根据query 设计 表的结构(换个词就是data model,瞬间高大上), 不用担心partition的数目太多(天文数字),需要注意的是一个partition (实际内部存储就是一个wide row, 超级长的行)的size不能太大,
如果size太大, 超过50M, 这会大大影响查询查询效率,最终结果表现就是蛋疼的问题:read timeout!!!!
先写这么多了,有空再补充!!!
阅读全文
0 0
- cassandra Internal data structure
- Data Structure
- Data structure
- Data Structure
- Data structure
- Data structure
- data structure
- Data Structure
- Data structure
- Data Structure
- Data Structure
- Data Structure
- Data Structure
- Internal Authentication of cassandra
- internal block structure(1)
- Data structure alignmentData structure alignment
- Cassandra data model
- Data Partitioning in Cassandra
- 秋招求职记(一)
- Spring对DAO的支持(精通Spring+4.x++企业应用开发实战 第十章)
- Spring MVC
- coci2011 debt 还债
- 关于cocos2d实现H5声音播放存在问题的解决办法
- cassandra Internal data structure
- 【项目管理】Jenkins+Maven+Git项目持续构建之前言
- 奇妙的Python:让人无法解释的输出(一)
- 二 iOS之 CALayer与UIView的分别及新建图层
- BeautifulSoup0929
- http的Get/post请求
- python基础知识
- CDOJ 1324 卿学姐与公主(分块)
- Halcon12 HObject与VC++ OpenCV Mat相互转换