KX Community

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

Home Forums kdb+ What does it actually mean to reload a HDB? why is this needed?

  • What does it actually mean to reload a HDB? why is this needed?

    Posted by mannix on January 29, 2023 at 12:00 am

    We know that .Q.hdpf sends a message to the HDB to reload, but what does this actually mean? and why is it necessary?

    mannix replied 2 weeks, 1 day ago 2 Members · 1 Reply
  • 1 Reply
  • darrenwsun

    Member
    January 30, 2023 at 12:00 am

    The reloading HDB part is as if “\l .” is run by HDB. This step for a partitioned database, among other things, loads serialized objects of the current directory (e.g. sym file) and caches things like splayed tables in the latest partition. It is necessary to make HDB pick up changes introduced by an external process, e.g. a new symbol may be introduced while saving the tables.

    The relevant doc is https://code.kx.com/q/basics/syscmds/#l-load-file-or-directory

Log in to reply.