【发布时间】:2015-06-23 18:31:45
【问题描述】:
我已在 Datastax java 驱动程序中使用以下代码进行批处理准备语句。
PreparedStatement ps = session.prepare("INSERT INTO messages (user_id,
msg_id, title, body) VALUES (?, ?, ?, ?)");
BatchStatement batch = new BatchStatement();
batch.add(ps.bind(uid, mid1, title1, body1));
batch.add(ps.bind(uid, mid2, title2, body2));
batch.add(ps.bind(uid, mid3, title3, body3));
session.execute(batch);
此 BatchStatement 是否已记录?
【问题讨论】: