enableTableShareAndPersistence 中有个cachesize参数,表示流数据表在内存中最多保留多少行。当流数据表的行数达到这个阈值cacheSize,前面一半的记录行会从内存中清理。 如果想得到持久化的数据,请用subscribeTable从getPersistenceMeta(table).diskOffset(当前磁盘上数据相对总记录数的偏移量)行开始订阅。
回答于 2022-07-22 18:18
目前dolphindb支持的语法如下: alter table tableObj add columnName columnType; 详见https://www.dolphindb.cn/cn/help/SQLStatements/alter.html 只支持在后面追加,暂不支持加在某列的前面
回答于 2022-07-19 16:15
下面函数通过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
/* * * @ 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
查看连接用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
/* * * @ 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
是的,and只支持小写。 DolphinDB 的 SQL 语句区分大小写, SQL 关键字必须使用小写。
回答于 2022-07-03 22:39