来自Marko的评论的Copid——
Basically the write performance will not be affected but the read performance will suffer if you have very
very long rows and always read stuff from the back of it.
Over time when you insert the data cassandra will also have to read more sstables to satisfy your read requests,
so with time read performance will degrade if you are not careful
我只想考虑避免删除。如果我们可以设计上面的用例来避免删除。
create table groups(
groupid int,
userid int,
groupName text static,
attributes Map( text , text),
primary key (groupid,userid)
);
查询——
insert into groups (groupid,userid,groupName,attributes) values (100,200,'friends',{'admin':'false','moderator':'true','user-member':'true'});
update groups set attributes['admin'] = 'true' where groupid=100 and userid = 200;
这样我们就不必删除表中的任何值。同样在将来,如果我们想添加新属性,我们不必更改表定义。