2022.06.17 06:29 AM
when I query HDB, it is always faster using date>$date$? $date$ could be .z.d-10000, which is much larger than my earliest date in KDB.
2022.06.17 07:21 AM
Hi renbright -
There are some posts showing how to embed code which will make your question more clear:
Can you share more complete example?
The second of these queries is faster because it reads less data:
//Retrieves data from all dates
select from table
//Retrieves only the last 5 days of data
select from table where date>(.z.d-5)
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.