-
HDB – map sym to int for partitioning
Our access patterns are heavily based upon accessing one sym for a long history, rather than accessing everything for a given date.
As such it would be massively more efficient for us to partition by sym rather than by date. Or even to maintain two HDBs with both partition types.
While KDB doesn’t natively support partitioning by sym, it sounds like this is possible if we map this to an int ourselves.
- Is this a well-trodden path?
- What would be the best way to maintain this sym-to-int mapping? Could we re-use the indices in the sym file?
- How could we ensure this mapping isn’t corrupted? Perhaps in a similar way to how .Q.en locks the sym file during writes?
- Is there an upper limit to the integer that can be used for partitioning?
Many thanks
Log in to reply.