KxSystems / rkdb

R client for kdb+
https://code.kx.com/q/interfaces
Apache License 2.0
41 stars 29 forks source link

Async calls from R #46

Open brian-loo opened 5 years ago

brian-loo commented 5 years ago

I see some mention of async calls. Is it possible to query data asynchronously through R?

Thanks!

kimtang commented 5 years ago

rkdb is a wrapper around k.h. So you can use the negative handle to fire and forget commands to kdb.

handle = open_connection(port = 8888) execute(-handle,'b:1 2 3') # this is possible

But if you want to 'wait' for the kdb process to come back to you this has not been implemented yet. Implementation should be fairly easy. Perhaps we can label this as enhancement.