How to feed data manually

260 views
Skip to first unread message

Mixa

unread,
Jan 9, 2024, 7:33:29 AM1/9/24
to Data Intellect kdb+/TorQ

Mixa

unread,
Jan 9, 2024, 9:01:37 AM1/9/24
to Data Intellect kdb+/TorQ
Also I'm aware about conversation "Which function is used to feed realtime data" and tried these recomendations.

Jamie Peters

unread,
Jan 10, 2024, 4:42:08 AM1/10/24
to Data Intellect kdb+/TorQ
Hi Mixa, 

I will take a look at this for you, going to try recreate it now and I will keep you updated.

Kind regards, 
Jamie 

Jamie Peters

unread,
Jan 10, 2024, 7:03:09 AM1/10/24
to Data Intellect kdb+/TorQ
Hi Mixa, 

The stp is set up  by default to add a timestamp to the records (since this keeps a record of exactly when the data is received and if the data already comes with a timestamp we can store both by helping to diagnose potential latency issues) and then there is a length error when trying to insert the record, if you try to add the record without a timestamp like
h(`.u.upd;`iva;(`AAFF;`blabla)) it should work. If you want to pass the records with a timestamp you can change the value in .stplg.updtab for that particular table like .stplg.updtab[`iva]:{[x;y]x} , documentation of this is here. Using the first method I can then see the record in the rdb, however I am a little unsure exactly how you were querying the gateway, using qcon and then running exactly what you have stated still returns nothing (note this is a bug within TorQ and we are going to look into it), however passing a sync message to the gateway using  h(`.gw.syncexec;"select [-10] from `iva";`rdb) is returning the record for me. 

Hope this helps, any other questions feel free to ask,
Jamie

Mixa

unread,
Jan 11, 2024, 4:19:57 AM1/11/24
to Data Intellect kdb+/TorQ
Jamie, 
Big thanks for your help. Removing timestamp from the record resolved my problem. Now stack works as I expected.
Mixa

Reply all
Reply to author
Forward
0 new messages