开发者

UTF8Type vs. ByteType Apache Cassandra

开发者 https://www.devze.com 2023-01-26 18:04 出处:网络
could you help me find out the reasons behind why \"user\" column family is compared with UTF8Type not ByteType and username with BytesType not UTF8Type in this article: http://www.racksp开发者_StackO

could you help me find out the reasons behind why "user" column family is compared with UTF8Type not ByteType and username with BytesType not UTF8Type in this article: http://www.racksp开发者_StackOverflow中文版acecloud.com/blog/2010/05/12/cassandra-by-example/


No good reason. Today good style would recommend making both UTF8Type. It only matters for validation though; even if column ordering mattered (which it does not on these CFs) utf8 sorts the same as lexical byte ordering anyway.

Also: wouldn't commenting directly on the article be more useful for other readers?

0

精彩评论

暂无评论...
验证码 换一张
取 消