Nosql 卡桑德拉:更新多行吗?
在mysql中,我可以执行以下查询,Nosql 卡桑德拉:更新多行吗?,nosql,cassandra,Nosql,Cassandra,在mysql中,我可以执行以下查询,updatemytable SET price='100',其中manufacturer='22' 卡桑德拉能做到这一点吗 谢谢 为此,您需要在一个单独的列族中维护自己的索引(您需要一种方法来查找由certatin制造商生产的所有产品(产品ID)。当您拥有所有产品ID时,进行批量变异非常简单)。 例如 (免责声明:感谢上面使用的注释)Hi!在读了两遍你的链接后,我真的还不明白,但也许在第四次或第五次之后:)谢谢你的帮助! ManufacturerToProd
updatemytable SET price='100',其中manufacturer='22'
卡桑德拉能做到这一点吗
谢谢 为此,您需要在一个单独的列族中维护自己的索引(您需要一种方法来查找由certatin制造商生产的所有产品(产品ID)。当您拥有所有产品ID时,进行批量变异非常简单)。 例如
(免责声明:感谢上面使用的注释)Hi!在读了两遍你的链接后,我真的还不明白,但也许在第四次或第五次之后:)谢谢你的帮助!
ManufacturerToProducts = { // this is a ColumnFamily
'22': { // this is the key to this Row inside the CF
// now we have an infinite # of columns in this row
'prod_1': "prod_1", //for simplicity I'm only showing the value (but in reality the values in the map are the entire Column.)
'prod_1911' : null
}, // end row
'23': { // this is the key to another row in the CF
// now we have another infinite # of columns in this row
'prod_1492': null,
},
}