0
我正在使用gocql,但它应该没有什么不同。
你知道如何解决以下?:批处理条件不能跨越多个分区
A2B := gocql.NewBatch(gocql.LoggedBatch)
stmtA2B := "INSERT INTO tableName (idA, idB) VALUES (?,?) IF NOT EXISTS"
for index, id := range listOfids {
A2B.Query(stmtAB, "test_id_A", "test_id_B") // This works
A2B.Query(stmtAB, "test_id_B", "test_id_A") // When I add this I get err
}
err := session.ExecuteBatch(A2B)
的错误信息是:
批与条件不能跨越多个分区 2015年11月5日19时30分04秒的http:恐慌服务xxxx:44647:批处理条件不能跨越多个分区
你能后,你看到的错误讯息? – Aaron