提交 f5bdb35e authored 作者: noelgrandin's avatar noelgrandin

Bump up the sequence cache size from 64 to 1024.

Prevents sequence writing from becoming a bottleneck when doing bulk load.
上级 6bcc31f4
...@@ -24,7 +24,7 @@ public class Sequence extends SchemaObjectBase { ...@@ -24,7 +24,7 @@ public class Sequence extends SchemaObjectBase {
/** /**
* The default cache size for sequences. * The default cache size for sequences.
*/ */
public static final int DEFAULT_CACHE_SIZE = 32; private static final int DEFAULT_CACHE_SIZE = 1024;
private long value; private long value;
private long valueWithMargin; private long valueWithMargin;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论