cancel
Showing results for 
Search instead for 
Did you mean: 

.q.en - does it read the sym file from disk every time?

jattwick
New Contributor II

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.

1 ACCEPTED SOLUTION

jfealy
New Contributor II

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 

 

View solution in original post

1 REPLY 1

jfealy
New Contributor II

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