Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我定义了很多列但每行使用很少但不同的集合,我们是否会显着降低性能或增加磁盘大小?
你不会失去性能。事实上,它实际上非常有效(取决于您的用例),因为空列不占用任何空间。您是否会“获得”显着的磁盘大小是主观的。它更多的是关于您将节省的磁盘空间,而不是您用来避免空列的替代方法。
“在 Cassandra 中拥有没有值的列实际上是免费的”
http://www.datastax.com/dev/blog/cql3_collections