DolphinDB database报错:One symbase's size can't exceed 2097152

我的python代码调用DolphinDB database代码如如附件DolphinDB database报错:One symbase's size can't exceed 2097152 ,但运行时出错:

<Server Exception> in call: RemoteRun\[p2-node2\] One symbase's size can't exceed 2097152

2020-04-07 14:59:13,181 - INFO: import IO2012-C-3200,20200403 into dolphindb ticks table fail

2020-04-07 14:59:13,181 - INFO: DolphinWriter Ticks Error

<Server Exception> in call: RemoteRun\[p2-node2\] One symbase's size can't exceed 2097152

2020-04-07 14:59:24,324 - INFO: import IO2012-C-3100,20200403 into dolphindb ticks table fail

2020-04-07 14:59:24,325 - INFO: DolphinWriter Ticks Error

请问,报上面这个错误,是因为内存不够吗?


回答:

不是内存问题。是SYMBOL类型,有最大数量限制,不能超过2097152(2的21次方)个。SYMBOL相当于枚举类型,如果一个表中某一个字段的数据都没有重复,数据量又很大,那就失去了symbol的意义。因此这样的字段不能用SYMBOL数据类型。

以上是 DolphinDB database报错:One symbase&#x27;s size can&#x27;t exceed 2097152 的全部内容, 来源链接: utcz.com/a/165790.html

回到顶部