Welcome to JiKe DevOps Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
907 views
in Technique[技术] by (71.8m points)

DolphinDB中数据持久化的问题

使用场景:客户端开启两个python进程访问同一个DolphinDB的server端,假如我在python进程A中运行demo获得了一个处理过的table1,我想在进程B中直接使用这个处理过的table1,该如何在DolphinDB中实现?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

Please log in or register to answer this question.

1 Answer

0 votes
by (71.8m points)

dolphindb的默认对象都是在一个会话中有效,一旦会话结束,就会释放会话中的所有变量。
dolphindb提供了shared table和shared dictionary,这个是全局有效的,用户可以自行管理。
具体shared dictionary的使用,可以打开:
https://www.dolphindb.cn/cn/h...
搜索:syncDict函数的用法。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to JiKe DevOps Community for programmer and developer-Open, Learning and Share
...