Home › Forums › kdb+ › Partitioning Tables Intraday by Custom Fields? › Re: Partitioning Tables Intraday by Custom Fields?
-
Hi Leah,
A kdb logfile typically has the form of (func;tabName;tabData), which can be as simple as f:{upsert[x;y]}. There isn’t anything special in terms of replaying the data into the kdb process, but more so to do with saving down the data.
Assuming you mean to save to another date, you could simply pull out a date from the data (after replay) and use it as a parameter for your save down logic.
If you mean at a higher level on partitioning the data differently across the entire database, data can be partitioned by any column of types date, month, year and int (1, 2), so depending on the requirements you could map values to a specific int based partition schema (3).
Hope this helps!
Kind regards,
David
References: