BlockReaderSP 的示例代码里,priority=4 和 parallelism=2 这两个 magic number 具体代表什么

https://github.com/dolphindb/api-cplusplus/blob/release200/README_CN.md#754-使用blockreadersp对象分段读取表数据

BlockReaderSP 的示例代码里,priority=4 和 parallelism=2 这两个 magic number 具体代表什么?文档里找不到。

我理解,parallelism 可能是并行读取多个分区用的?这两个参数的取值范围通常是多少?

请先 登录 后评论

1 个回答

wale

parallelism 是作业的并行度,priority 是作业优先级,每次 run() 相当于提交一个 job,可以参考这里的参数说明 https://docs.dolphindb.cn/zh/help/FunctionsandCommands/FunctionReferences/g/getConsoleJobs.html?highlight=parallelism

更详细的说明请参考:

https://gitee.com/dolphindb/Tutorials_CN/blob/master/job_management_tutorial.md#5-%E4%BD%9C%E4%B8%9A%E8%B0%83%E5%BA%A6  5. 作业调度

请先 登录 后评论