KX Community

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

Home Forums kdb+ merge/copy partitioned tables efficiency Re: merge/copy partitioned tables efficiency

  • megan_mcp

    Administrator
    November 21, 2023 at 12:00 am

    Hi ,

    You appear to be upserting at a table level, you could try doing the upserts at a column level and peach it. something like:

    {colData:get .Q.dd[`:kdbfolder_n/<date>/trade;x];upsert[.Q.dd[`:kdbcommon/<date>/trade/;x];colData]}peach except[cols trade;`date]

    For this you need to have threads enabled in the command line:

    -s N

    Let me know if this works,

    Megan