Cassandra Delete by Secondary Index or By Allowing Filtering

前端 未结 3 1322
轮回少年
轮回少年 2020-12-30 06:35

I’m trying to delete by a secondary index or column key in a table. I\'m not concerned with performance as this will be an unusual query. Not sure if it’s possible? E.g.:

相关标签:
3条回答
  • 2020-12-30 06:55

    No, deleting by using a secondary index is not supported: CASSANDRA-5527

    0 讨论(0)
  • 2020-12-30 07:06

    When you have your secondary index you can select all rows from that index. When you have your rows you know the primary key and can then delete the rows.

    0 讨论(0)
  • 2020-12-30 07:22

    I came here looking for a solution to delete rows from cassandra column family. I ended up doing an INSERT and set a TTL (time to live) so that I don't have to worry about deleting it.

    Putting it out there, might help someone.

    0 讨论(0)
提交回复
热议问题