为链式 TP 添加 tplog 写入能力

adding tplog writing ability to chained TP

我正在尝试让 Chained TP 也写入 tplog 文件。

但是,我从进程日志中看到的是每秒l。 参考这个 link:https://github.com/KxSystems/kdb/blob/master/tick/chainedtick.q 在 shell 脚本中我已经指出要订阅哪个 tp。

我更改了这两个函数:

if[system"t";
 .z.ts:{.u.pub'[.u.t;value each .u.t];@[`.;.u.t;@[;`sym;`g#]0#]}; 
  upd:{[t;x] t insert x;if[l;l enlist (`upd;t;x);j+:1];}]

if[not system"t";  
   upd:{[t;x] .u.pub[t;x];if[l;l enlist (`upd;t;x);i+:1];}]

还添加了

  .u.tick[src;.z.x 1];

最后。

仍在尝试弄清楚为什么 tplog 中没有任何内容?

.u.tick(或 .u.tick 中定义的 .u.l)未在 chainedtp.q 中定义。 .u.tick 可以在 tick.q.

中找到

AquaQ 分析'TorQ infrastructure has a chained TP process, which allows you to specify on startup whether you want a logfile to be created or not. More info can be found here。 (完全免责声明,我是 AquaQ 的员工)。