cancel
Showing results for 
Search instead for 
Did you mean: 

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

Mannix
New Contributor III
New Contributor III

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

1 REPLY 1

darrenwsun
New Contributor III

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