如何统计持久化流表的总行数?

问题描述 投票:0回答:1

我使用函数

enableTableShareAndPersistence
进行流表持久化,参数cacheSize设置为100000,即内存中最多保留100000条记录。

现在我要统计流表的总行数,包括那些已经刷入磁盘的记录。

我从rwStream中调用exec count(*),但只得到流表内存中存储的记录数

streaming dolphindb
1个回答
0
投票

尝试

getPersistenceMeta(rwStream)
,你可以得到
totalSize
的磁盘持久性。

© www.soinside.com 2019 - 2024. All rights reserved.