Kx Dashboard and TorQ Gateway connection

121 views
Skip to first unread message

JerLucid

unread,
Aug 23, 2023, 8:51:31 AM8/23/23
to Data Intellect kdb+/TorQ
Hi team,

Can you please provide me with the steps required to allow the
TorQ Gateway to work with KxDashboards?

Currently my Dashboards are connecting to a relay process, which routes the query to the Gateway, as I saw this recommended in a previous post, but I'd like
to move over to a direct connection if possible. 

I see there is a file called kxdash.q in the code/gateway folder, with 
an enabled flag at the top, should it simple be a matter of
setting .kxdash.enabled to 1b? 

Many Thanks



JerLucid

unread,
Nov 7, 2023, 7:56:52 AM11/7/23
to Data Intellect kdb+/TorQ
Just following up on this one. Can someone provide steps to enable TorQ Gateway to work with Kx Dashboards please?
Many Thanks

Sophie Loca

unread,
Nov 10, 2023, 5:05:14 AM11/10/23
to Data Intellect kdb+/TorQ
Hi JerLucid,

Thanks for following up on this. We are working on resolving this issue and will be in touch with any updates.

Best,
Sophie

Sophie Loca

unread,
Nov 13, 2023, 10:25:01 AM11/13/23
to Data Intellect kdb+/TorQ
Hi JerLucid,

If you make the below changes to the code you should be able to directly query the gateway:

/TorQ/code/gateway/kxdash.q

enabled:@[value;`enabled;{1b}];, 

 and 

.z.ps: .kxdash.dashps  /For now we had to revert this to the previous version


/TorQ/config/settings/gateway.q

\d .kxdash

enabled:1b  


Here are some example queries that worked for us:

.kxdash.dashexec["select from trade";`rdb;raze]

.kxdash.dashexec["select sum size by sym from trade";`rdb`hdb;{sum x}]

{[s] .kxdash.dashexec[({select from trade where sym in x};s);`rdb`hdb;raze]}[`MSFT] /Parameterised version


Please let me know if this works for you okay.

Best,
Sophie


Jeremy Lucid

unread,
Nov 14, 2023, 3:09:22 AM11/14/23
to Sophie Loca, Data Intellect kdb+/TorQ
Excellent, thanks Sophie, I appreciate the examples you provided too 

--
dataintellect.com
dataintellect.com/thoughts
---
You received this message because you are subscribed to a topic in the Google Groups "Data Intellect kdb+/TorQ" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kdbtorq/FDkCUoQA7XE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kdbtorq+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/kdbtorq/ccbf19ae-454e-4cf0-8174-54a19db578f2n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages