kdb+ and q
Q+A on all things kdb+ database and the q language
cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

how to limit memory in script ?

Currently from command line ,I am setting memory like :q -w 500but when I require it within a script what would be the way..'system' command ? not sureIs there any other way /approach to limit the memory too ?

sweta by New Contributor
  • 591 Views
  • 1 replies
  • 0 kudos

Can .Q.dpft create segmented tables?

/ Can I use .Q.dpft instead of functional dot apply to write these 2 tables? Thx.quote:([]time:("p"$2016.06.01)+til 3; sym:`A`B`C; price:0.1*til 3);quoteEnum:.Q.en[`:/tmp/hdb/head][quote];.[`:/tmp/hdb/gamma/2016.06.01/gamma/; (); :; quoteEnum];.[`:/t...

LamHinYan by New Contributor
  • 774 Views
  • 1 replies
  • 0 kudos

segmented database with different date ranges

/ How can I fix this? Thx.quote:([]time:("p"$2016.06.01)+til 3; sym:`A`B`C; price:0.1*til 3);quoteEnum:.Q.en[`:/tmp/hdb/head][quote];.[`:/tmp/hdb/gamma/2016.06.01/gamma/; (); :; quoteEnum];.[`:/tmp/hdb/delta/2016.06.02/delta/; (); :; quoteEnum];`:/tm...

LamHinYan by New Contributor
  • 1871 Views
  • 5 replies
  • 0 kudos

reverse aj aka find the next element after a time

I frequently face the need to find the next element (bid/ask/trade) after an event/signal. I was wondering if there is a reverse aj trick which i am missing.currently I use a hackish approach where I subtract time from a large/eod time and then do an...