Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
Use the following options to specify how PhixFlow manages old data when a table-data-delete task runs.
Warning |
---|
We recommend that you always specify the data retention values for every table you create.
If no data retention option is set, PhixFlow displays an error in the Errors section, above. |
- Using Tasks and Task Plans for information about tasks.
- Deleting Old Data to see how you can use these values in data management strategies.
Warning |
---|
Tables with Retain All Data ticked never have their data deleted and the data will accumulate. This can lead to performance issues. |
Keep for N Days
The age of data in a recordset is its 'to' date, relative to the 'to' date of the newest valid recordset in the table .
When a table-data-delete task runs for a table and:
- Keep for X Days only is set, PhixFlow deletes table data that is older than N days.
- Keep for Y Recordsets only is set, PhixFlow keeps the most recent X recordsets and deletes recordsets that exceed X.
- both Keep for X Days and Keep for Y Recordsets are set, PhixFlow deletes the table data that meets both conditions.
- neither Keep for N Days nor Keep for X Recordsets are set, PhixFlow keeps table data indefinitely. This can lead to performance issues.
The number of recordsets to keep in the table.
Keep Superseded for N Days
Enter the number of days to keep superseded records in the table data.
Tip |
---|
Remember to keep superseded records for as long as you want the option to roll back the data. For example, when Keep Superseded for N Days is set to 4, you can run roll back on data that was superseded up to 4 days ago. A table-data-delete task removes superseded records older than 4 days, so PhixFlow no longer has the data to be able to roll it back. |
In a table where the superseded date is tracked, the table data contains a mixture of active records and records that have been superseded.
When a table-data-delete task runs for a table and:
- Keep Superseded for N Days only is set, PhixFlow deletes data records that were superseded more than N days ago.
- Keep Superseded for X Recordsets only is set, PhixFlow deletes superseded records from the recordsets that exceed X.
- both Keep Superseded for N Days and Keep Superseded for X Recordsets are set, PhixFlow deletes the superseded records that meet both conditions.
- neither Keep Superseded for N Days nor Keep Superseded for X Recordsets are set, PhixFlow keeps superseded records indefinitely. This can lead to performance issues.
Available when Track Superseded Data is selected.
Enter the number of recent recordsets that will retain their superseded data records.
Store Views
This section has a toolbar with standard buttons. In the grid PhixFlow displays a list of the views to store for this table.
Analysis Models
A list of the analysis models that this table appears on.
Advanced
Only change the advanced properties with advice by PhixFlow support.
Use this property if your database administrator wants to query table data in the PhixFlow database.
Enter a string in the format v_xxxx
. When the table is published to the database, PhixFlow creates a view. If the table is deleted, the next system task that runs will clear the associated view from the database.
By default, this field is blank and no view is created in the database.
See also Configuring Access to Database Views.
- All: indexes on the table are optimised for selecting from all recordsets (non-historied reads).
- Latest: indexes on the table are optimised for selecting from the latest recordset (i.e. for historied reads).
- Superseded: indexes on the table are optimised for self-updating tables which have a mostly superseded records.
- None: no indexes are created on the table.
- Partitioned: this index scheme is specific to partitioned tables; see Storage Type below. Partitioned tables must use this index scheme, and only partitioned tables can use it.
- Database: Store the data in a regular table within the PhixFlow database. This is the most common option
- Database (Partitioned): Store the data in a partitioned table within the PhixFlow database. This option provides improved performance for rollback and retaining very large recordsets. The option is only available if "partitioning" is available within your database installation.
- In Memory: Data for the table will not be written to the database. This option can be used (for example) when you want to aggregate large amounts of unsorted data which can then be written to a stored table.
This option relates to an actionflow with a save node that inserts a new record into a table. Each new record requires a unique value for the record's primary key. Use this option to specify how PhixFlow generates the primary key value.
- Internal: PhixFlow generates unique primary key values automatically. This is equivalent to setting the attribute expression to
_NULL
. - Sequence: display the Primary Key Generator Sequence option, in which you can select a sequence of values.
Available when Primary Key Generator is Sequence.
Select a sequence to assign a new value to the primary key attribute of a new record; see Sequence.
The new record takes the next primary key value in a sequence. This is equivalent to setting the attribute expression to nextValue("sequenceName"
.
Available when Period is Transactional.
This can be useful where you want to make sure that two analysis runs do not attempt to update the same records at the same time e.g. as a result of two people selecting the same records in a view and then hitting the same action button at the same time to process those records.
Any additional analysis tasks submitted while this table is waiting to start, or while it is generating data, will wait until this table has completed its analysis before they start.
Access Permissions
By default, the permissions to access table data is set in System Configuration → Allow access to data by default.You can add specific user groups to restrict access to the table; see Common Properties → Access Permissions.