database - how to improve time for select in kdb -


i have created trade database on local machine, partitioned date.

select trade date=x takes 100 ms, when select trade date=x,sym=`alpha, takes ~1-3 seconds.

is there trick i'm missing (using `g#sym gives error 'par).

you can use dbmaint.q apply attributes to partitioned tables. see here . specifially @ setattrcol function. adding attribute speed query significantly. suggest using p# on id column if possible. should faster look-ups more difficult maintain.


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -