title: How to stream data in KDB?
body: <p>I have access to a realtime KDB server that has tables with new data arriving every millisecond.</p>
  
  <p>Currently, I'm just using a naive method which is basically like:</p>
  
  <pre><code>.z.ts:{
      newData: getNewData[];   / get data arriving in the last second
      data::data uj newData;
  };
  \t 100;
  </code></pre>
  
  <p>to ensure that my data (named <code>data</code>) is constantly updated.</p>
  
  <p>However, the <code>uj</code> is very slow (probably due to constant reallocation of memory) and polling is just plain awkward.</p>
  
  <p>I've heard KDB is meant to be good at handling this kind of streaming tick data, so is there a better way? Perhaps some push-based method without need for <code>uj</code>?</p>