

fbodon
Forum Replies Created
-
fbodon
MemberDecember 4, 2023 at 12:00 am in reply to: Question on sorting a large partitioned tableYou can sort the table column by column using iasc. This approach is described here – see function disksort.
-
You might find this document useful: https://dataintellect.com/blog/adventure-in-retrieving-memory-size-of-kdb-object/ It covers the memory need of attributes.
-
This is implicit composition (‘). You can see this from the parse tree:
q)parse "(3#,:)" ' (#;3) ,:
In k, the expression ,: corresponds to enlist. This construct is the same as repetition (*) in Python.
-
This 1 f pattern is crazy, but i love it
-
I would do
@[-6_string .z.p; 4 7 10; :; “–T”]
or if you prefer narrow square brackets then
@[; 4 7 10; :; “–T”] -6_string .z.p
-
Haha. Nice! The good old datetime! I already erased it from my memory
-
To avoid user queries blocking each other, you can set up a pool of q processes (HDBs) and use socket sharding as per https://code.kx.com/q/wp/socket-sharding/ or a TCP load balancer.