This content is now out of date.

Visit Our Community

How to configure the Event Archive time

To keep your Yellowfin configuration database finely tuned there are a few tasks you can do as mentioned in this forum post. One of them is to keep the number of records in the Event and EventArchive tables under control, this is good practice because these tables can get quite big as they record many different types of Yellowfin events.

There are 2 jobs that are important to this upkeep and maintenance of the Event and EventArchive tables, one of them moves records from the Event table to the EventArchive table when they become older than a certain number of days, and the other one deletes records from the EventArchive table when they become older than a certain number of days.

The way to create these 2 jobs and configure the number of days is by running the following 2 queries, keeping in mind that the last value of each INSERT query represents the number of days.

1. Archive tasks from the EVENT table, the job runs every day, searches for events older than x number of days ( eg. 30 days).

[code]insert into Configuration

2. Delete records from the EVENTARCHIVE table older than x number of days ( eg. 60 days).

[code]insert into Configuration
We had an issue where SSO via web service was timing out for our users because the event table index was being rebuilt. We hadn't explicitly requested a reindex so we believe it was requested by the Yellowfin app.

Therefore we have some questions around this process. Once this is configured, how does Yellowfin move the items from event to event_archive? How often is it done, is there a means to control what time of day or day or week it is executed? Are any commands issued to rebuild the index on the event table after archiving?

Ideally we would like to have control over this process so it occurs during our scheduled database maintenance windows and does not impact end users.

Hi there Mark,

there is nothing fancy about the process, if a row has reached its archive date then Yellowfin just inserts it into the EventArchive table and deletes the original in the Event table. Yellowfin does NOT do anything with the indexing. So, that situation you experienced with the rebuilding of the index must have been a database thing, not Yellowfin.

And as to how often it is done and what time of day, if you have a look at the TaskSchedule table in the Yellowfin config DB you will see column called FrequencyTypeCode - that's where you can control the frequency of the background system task, it has possible values of MINUTES, DAILY, WEEKLY, FORTNIGHTLY, MONTHLY, ANNUAL, MANUAL.

Then there is a column called ScheduledLocalRunTime, this is where you can configure what time of day the background task should run, it is measured in how many seconds from midnight, for example, 1 AM would be 3600. And as the column name implies, this is in your local time, NOT GMT time.

If you ever want to get a background system task to run without having to wait a week or a month or whatever you can do so by setting the column called LastRunGMTDateTime back to the previous run time, for example, if you have a task that runs every week, set the value of this column to the previous week. This is because Yellowfin checks the last time it was run and whether it is due to run again. Don't forget, as the column name implies, this is in GMT time, NOT your local time.

I hope that helps, if there are any follow-up questions please don't hesitate to ask us.