我有这张cassandra表:
CREATE TABLE object_counters
(
object_level_1 bigint,
object_level_2 bigint,
object_level_3 bigint,
upvote counter,
comment counter,
downvote counter,
rate_0_0 counter,
rate_0_5 counter,
rate_1_0 counter,
rate_1_5 counter,
rate_2_0 counter,
rate_2_5 counter,
rate_3_0 counter,
rate_3_5 counter,
rate_4_0 counter,
rate_4_5 counter,
rate_5_0 counter,
PRIMARY KEY((object_level_1, object_level_2), object_level_3)
);
和这个查询:
UPDATE ks_mobApp.object_counters SET comment=comment+1 WHERE object_level_1=163844152 AND object_level_2=163844152 AND object_level_3=163844152;
当表为空并且运行此查询时未更新计数器