2023.04.27 09:35 AM
The .Q namespace – tools | Reference | kdb+ and q documentation - Kdb+ and q documentation (kx.com)
based on this, it seems .q.en[] reads the sym file from disk every time it is called, which would pick up any updates that are coming from other processes.
However, I am not 100% certain and I am not proficient in reading the k implementation to know whether or not this is the case. I'm hoping someone has done this exercise and can answer it for me.
2023.04.27 12:32 PM - edited 2023.04.27 12:33 PM
Hi - yes it does. The corresponding logic block in .Q.en is
(`/:d,s)??,/?:'{$[0h=@x;,/x;x]}'t c
// which translates to
`:path/to/sym ? distinct raze distinct each (symlist from each column)
https://code.kx.com/q/ref/enum-extend/#filepath
2023.04.27 12:32 PM - edited 2023.04.27 12:33 PM
Hi - yes it does. The corresponding logic block in .Q.en is
(`/:d,s)??,/?:'{$[0h=@x;,/x;x]}'t c
// which translates to
`:path/to/sym ? distinct raze distinct each (symlist from each column)
https://code.kx.com/q/ref/enum-extend/#filepath
EMEA
Tel: +44 (0)28 3025 2242
AMERICAS
Tel: +1 (212) 447 6700
APAC
Tel: +61 (0)2 9236 5700
KX. All Rights Reserved.
KX and kdb+ are registered trademarks of KX Systems, Inc., a subsidiary of FD Technologies plc.