wale
wale

性别: 注册于 2021-05-07

向TA求助
20金币数
1890 经验值
1个粉丝
主页被访问 2412 次

163 个回答

0 赞同

如何设置流表超过阈值的行自动丢弃?

DolphinDB目前还不支持这个功能,需求收到。

回答于 2022-07-27 09:29

0 赞同

关于开启enableTableShareAndPersistence后如何取得流表的完整数...

enableTableShareAndPersistence 中有个cachesize参数,表示流数据表在内存中最多保留多少行。当流数据表的行数达到这个阈值cacheSize,前面一半的记录行会从内存中清理。 如果想得到持久化的数据,请用subscribeTable从getPersistenceMeta(table).diskOffset(当前磁盘上数据相对总记录数的偏移量)行开始订阅。

回答于 2022-07-22 18:18

0 赞同

时序引擎里用print debug不方便且貌似有错

DolphinDB有个函数writeLog可打印信息到节点日志文件。

回答于 2022-07-21 14:50

0 赞同

可以在表某个列前面添加一列吗

目前dolphindb支持的语法如下: alter table tableObj add columnName columnType; 详见https://www.dolphindb.cn/cn/help/SQLStatements/alter.html 只支持在后面追加,暂不支持加在某列的前面

回答于 2022-07-19 16:15

0 赞同

如何获取集群中所有节点的license有效期

下面函数通过rpc(getControllerAlias(), getClusterPerf{true})得到agent和controller的相关信息,然后通过xdb连接节点后remoteRun得到license有效期。注意1.30.19和2.00.7之前的版本,getClusterPerf不能返回高可用集群中follower控制节点的信息,需要另外手工获取非领导控制节点的license信息。 /* * * @ brief Get...

回答于 2022-07-12 16:57

0 赞同

如何取消集群内所有节点的后台作业的办法?

/* * * @ brief Cancel background jobs on any node in the cluster. * If id is not specified, all running background jobs in the cluster will be canceled. * If id is specified, running background jobs whose job IDs contain id will be canceled. * @ param * id indicates the job ID. It can be ob...

回答于 2022-07-11 14:12

0 赞同

请问怎么查看节点中的客户端连接,以及清除那些不活跃连接

查看连接用getSessionMemoryStat函数,清除连接用closeSessions函数。以下函数可清除集群中超过N小时不活跃的连接,供参考: /* * * @ brief This function is used to close inactive sessions. * @ param * hours determines the interval (in hours) after which a session is determined as inactive. The default...

回答于 2022-07-10 22:00

0 赞同

请问怎么准确查看一个DFS表占用的磁盘空间

/* * * @ brief This function is used to get the disk space occupied by the DFS table * @ param * database is the absolute path of the folder where the database is stored * tableName is the name of dfs table * byNode is a Boolean value, indicating whether the disk usage is displayed by node *...

回答于 2022-07-10 21:53

0 赞同

如果表中a,b两列数据,如果连续出现3条或以上相同的a和相同的b时,...

上面方法只考虑了b相同,没有考虑a相同

回答于 2022-07-09 11:11

0 赞同

请问一下,dolphindb 的SQL 不支持 大写的 AND 吗?

是的,and只支持小写。 DolphinDB 的 SQL 语句区分大小写, SQL 关键字必须使用小写。

回答于 2022-07-03 22:39