KX Community

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

Home Forums kdb+ How the sym file reads data from partition table? Re: How the sym file reads data from partition table?

  • gyorokpeter-kx

    Member
    February 20, 2023 at 12:00 am

    Why do you have  `$dbpath, “;” ? If dbpath is “db” then that would explain why you are seeing a “db;” directory.

    This way, the sym file from this operation is created in the “db;” directory, and the symbol indices in the table will point to this new sym file. You can’t swap in and out sym files with each other if there are existing symbol references to it, because then they will point to the wrong symbol. Instead you could load the “wrong” sym file, de-enumerate the symbol columns, and then call .Q.en again but this time with the correct database path.