KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums kdb+ What is the purpose of publishing value each t to t in .u.pub?

  • What is the purpose of publishing value each t to t in .u.pub?

    Posted by mannix on March 17, 2022 at 12:00 am
    if[system“t”;
    .z.ts:{pub[t;value each t];@[`.;t;@[;`sym;`g#]0#];i::j;ts .z.D};
    upd:{[t;x]
    if[not -16=type first first x;if[d<“d”$a:.z.P;.z.ts[]];a:“n”$a;x:$[0>type first x;a,x;(enlist(count first x)#a),x]];
    t insert x;if[l;l enlist (`upd;t;x);j+:1];}];

    What do we use .z.ts to publish “value each t” to the “t” itself, I thought we just added updates to the table, not the whole table itself?

    Why is this?

    mannix replied 9 months, 1 week ago 2 Members · 1 Reply
  • 1 Reply

Log in to reply.