大数据的存储与批处理
// 批处理添加
@Test
public void testBatch() {
DemoUtils.executeBatch();
}
// 添加大文本数据
@Test
public void testAddText() {
//在my.ini文件的[mysqld]后面添加max_allowed_packet=64M
DemoUtils.executeAddText();
}
// 添加大二进制数据
@Test
public void testAddBlob() {
//在my.ini文件的[mysqld]后面添加max_allowed_packet=64M,同时修改编码
DemoUtils.executeAddBlob();
}
// 查询大文本数据
@Test
public void testQueryText() {
DemoUtils.executeQueryText();
}
// 查询大二进制数据
@Test
public void testQueryBlob() {
DemoUtils.executeQueryBlob();
}