Skip to content

Partition time of rolling tables

Shamis Shukoor edited this page Jan 22, 2019 · 1 revision

For changing the partition time of rolling tables

  1. partition time in the dderl tables are saved in seconds. So 86400 corresponds to a day
  2. On line 65 in dderl.erl change the number at the end of the table name to the partion time that you want to set. For example setting the partition time from day to a minute you have replace
-define(cproLogTable,"dderlLog_86400@_").

with

-define(cproLogTable,"dderlLog_60@_").
  1. Compile and load the code hot update the code into the node.
  2. In dderl on table ddAlias change the row with qname as
{sbsgui,dderlLog_86400@}

to

{sbsgui,dderlLog_60@}

for partitioning the table every minute. 5. Also make the similar change in table ddConfig for the record with hkl value [{dderl,dderl,dderlLogTable}]. Edit the column val.