KX Community

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

Home Forums kdb+ Fast Insert Line into Middle of An In-memory Table

  • Fast Insert Line into Middle of An In-memory Table

    Posted by xiaocheng on July 30, 2021 at 12:00 am

    Hi Community,

     

    We came across one issue in development.

    Say we’ve got an in-memory table “tbl”, and want to insert “data” into this table regularly, not by appending, but inserting into specific row with “index”.

     

    Currently we tried to do the following:

    `tbl set (index#tbl), data, index _ tbl;

     

    Question is:

    Is there any suggested solution with decent performance as it would run multiple times.

     

    Thanks in advance.

    Xiaocheng

     

    xiaocheng replied 8 months ago 2 Members · 1 Reply
  • 1 Reply

Log in to reply.