kdb+ and q
Questions related to kdb+ and q
cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Resolved! Updating input parameter over iteration

Hi, I was wondering if there's a way to run a function over x number of iterations and also update a second value based on the function's output. For e.g. summer:{[ID;y;z] y:y+z; ID:ID+1}{summer[x;y;z]}[;2;2]/[{x<750};0]Currently this runs for 750 it...

MG4 by New Contributor II
  • 744 Views
  • 5 replies
  • 0 kudos

Resolved! Question about query that stuck the KDB process

HI all We’ve run below query select minute, date, sums(size)/sum(size) from select sum(size) by 1 xbar time.minute, date from table where filtering We understand we actually should use “%” instead of “/” for divide, but I believe it just return somet...

carfield by New Contributor
  • 592 Views
  • 4 replies
  • 0 kudos

Resolved! Size of message received by .z.pg/.z.ps

Hi, Wondering if there was any way to get the size of the message that was sent to .z.pg/.z.ps aside from re-serializing with -8! Having to re-serialize would be very costly for larger messages, so it'd be nice if there was a variable like .z.u or .z...

nugend by New Contributor II
  • 388 Views
  • 1 replies
  • 0 kudos

Resolved! Insert a not matching dictionary to a table

Hello, I would like to append a row to a table with data that is saved as a dictionary. The dictionary might have additional keys when comparing it to the columns in the table so upsert is not possible. I would like to only upsert the values from the...

jhug by New Contributor
  • 519 Views
  • 2 replies
  • 0 kudos

Ticker Plant

Hi All,We are building ticker plant and in very initial stage.Can you please guide me with sample examples or resources. Thanks & Regards.

Rithvik by New Contributor
  • 474 Views
  • 1 replies
  • 0 kudos