KX Community

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

Home Forums kdb+ In-place attribute removal

  • In-place attribute removal

    Posted by alvi_kabir919 on March 7, 2023 at 12:00 am

    Is there any way to do this?  `# looks to always be creating a copy of the original list for  `g/`u, whether it’s applied on a list reference or value. I wrote a C function to set the list object’s u member (x->u) to 0, and from within q called this function and followed it up with re-applying the attribute (`g#) and this combination seems to clear the attribute without making a copy and also removes the references to the previous attribute data, allowing it to be garbage collected by .Q.gc[]. Is there another way? Thanks in advance.

    alvi_kabir919 replied 8 months, 2 weeks ago 2 Members · 1 Reply
  • 1 Reply

Log in to reply.