提交 7bbfcf0d authored 作者: Thomas Mueller's avatar Thomas Mueller

MVStore: recovery for a database with many CLOB or BLOB entries is now much faster.

上级 64a43554
...@@ -681,7 +681,8 @@ public class Recover extends Tool implements DataHandler { ...@@ -681,7 +681,8 @@ public class Recover extends Tool implements DataHandler {
writer.println("-- LOB"); writer.println("-- LOB");
writer.println("CREATE TABLE IF NOT EXISTS " + writer.println("CREATE TABLE IF NOT EXISTS " +
"INFORMATION_SCHEMA.LOB_BLOCKS(" + "INFORMATION_SCHEMA.LOB_BLOCKS(" +
"LOB_ID BIGINT, SEQ INT, DATA BINARY);"); "LOB_ID BIGINT, SEQ INT, DATA BINARY, " +
"PRIMARY KEY(LOB_ID, SEQ));");
for (Entry<Long, Object[]> e : lobMap.entrySet()) { for (Entry<Long, Object[]> e : lobMap.entrySet()) {
long lobId = e.getKey(); long lobId = e.getKey();
Object[] value = e.getValue(); Object[] value = e.getValue();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论