在 KDB 中获取 table 的 length/dimension 的最短方法是什么?
What's the shortest way to get the length/dimension of a table in KDB?
目前我正在做一个select count
,这似乎很难实现。
有没有简单的 length/size/dimension 运算符?
使用 count
和 table 名称是有效的。
q)count trades
2000
这比使用虚拟列 i
快很多,因为有关 table 计数的信息存储在平面文件的 header 中。
q)\t:10000000 select count i from trades
9910
q)\t:10000000 count trades
592
目前我正在做一个select count
,这似乎很难实现。
有没有简单的 length/size/dimension 运算符?
使用 count
和 table 名称是有效的。
q)count trades
2000
这比使用虚拟列 i
快很多,因为有关 table 计数的信息存储在平面文件的 header 中。
q)\t:10000000 select count i from trades
9910
q)\t:10000000 count trades
592