Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion code/processes/idb.q
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ symfilehaschanged:{[]

/- checks if count of partitions has changed since last reload of the IDB. Records new partition count if changed.
/- the default writedown method doesn't need db reloading as no new directory is being created there.
/- First check is to ensure that a single intraday partition exists (so loadidb doesn't fail)
partitioncounthaschanged:{[]
if[writedownmode~`default;:0b];
if[(1j~partitionsize)&writedownmode~`default;:0b];
$[partitionsize<>c:count key idbdir;[partitionsize::c; 1b];0b]
};

Expand Down
2 changes: 1 addition & 1 deletion code/processes/wdb.q
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ endofdaysort:{[dir;pt;tablist;writedownmode;mergelimits;hdbsettings;mergemethod]
endofdaysortdate[dir;pt;key tablist;hdbsettings]
];
/- run steps to rollover idb
idbreload[currentpartition+1];
idbreload[pt+1];
/- reset compression level (.z.zd)
resetcompression[16 0 0]
};
Expand Down