开发者

UTF8Type vs. ByteType Apache Cassandra

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜