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