1
我想運行OLAP查詢。 Im使用datastax node.js驅動程序用於OLTP 隊列。我如何使用node.js運行OLAP?如何使用DataStax圖形的Node.js驅動程序運行OLAP查詢?
http://www.datastax.com/dev/blog/nodejs-driver-for-datastax-enterprise
我想運行OLAP查詢。 Im使用datastax node.js驅動程序用於OLTP 隊列。我如何使用node.js運行OLAP?如何使用DataStax圖形的Node.js驅動程序運行OLAP查詢?
http://www.datastax.com/dev/blog/nodejs-driver-for-datastax-enterprise
有幾種方法去這樣做,但最直接的路線是提供一個graphSource
在executeGraph
的queryOptions
參數「A」。源'a'與DSE Graph交流以使用OLAP遍歷源(source)。
const client = new Client({
contactPoints: ['127.0.0.1']
profiles: [
new ExecutionProfile('olap', {graphOptions: {source: 'a'}})
]
});
client.executeGraph('g.V().count()', null, { executionProfile: 'olap' }, function (err, result) {
});
:
client.executeGraph('g.V().count()', null, {graphSource: 'a'}, function (err, result) {
// process result
});
或者,也可以在可重複使用的執行OLAP查詢客戶端初始化定義ExecutionProfile