流数据表持久化的目的并不是作为存储历史数据的用途,存储历史数据建议对这个流表做一个订阅,写入dfs数据库的dfs表中。流数据表持久化到目录文件压缩效率不会很高,而且一般设置保留时长,默认是一天。 在函数enableTablePersistence(table, [asynWrite=true], [compress=true], [cacheSize=-1], [retentionMinutes=1440]...
回答于 2021-10-13 16:24
首先,参阅模块复用教程https://github.com/dolphindb/Tutorials_CN/blob/master/module_tutorial.md建立模块 然后,在python端执行 s.run("use XXX")调用模块
回答于 2021-10-12 10:20
The engine can be add filter parameter,only output data we needed.So add the parameter "filter = <ts != move(ts, 5)>" to the engine which outputTable is been remove duplicate data.
回答于 2021-10-12 10:17
Add the parameter "filter = <ts != move(ts, 5)>" to createReactiveStateEngine.
回答于 2021-10-11 11:08
2.0 bata版本主要是增加了TSDB存储引擎,详见 https://gitee.com/dolphindb/release/tree/master/2.00
回答于 2021-10-08 10:50
使用自定义函数,参考如下: select moving(x->corr(x, sort(x)), close, 5) from t context by code
回答于 2021-10-08 10:39
Confirmed your promble, We will handle it as soon as possible.
回答于 2021-10-06 17:51
取最后100行代码如下: rowsNum = alphaDDBPanelq.rows() if (rowsNum >= 100) { alphaDDBPanelq[rowsNum - 100:,] } else { alphaDDBPanelq[0:,] }
回答于 2021-09-24 15:45