The RDBMS driver can be configured to always create an index in the target database when exporting history data. You can set
the Always Create Index For New Tables property (added in
Niagara 4.11) on the Rdb Archive History Provider component to true to ensure that an index in the created RDBMS tables for exported histories is always created regardless of how other properties
are configured. For example, if this property is set to false and the Use Last Timestamp property is set to true, indexes may not get created on the exported tables. There is no creation of indexes when Use Last Timestamp is set to true, regardless of this property setting. Setting this property to true in that scenario would cause any new tables created going forward to also have a proper index created. You can subsequently
use the The Migrate To Optimized Table Indexes action against existing exported tables (also those prior to
Niagara 4.11) that you want to migrate to ensure that updated indexes are created in the RDBMS. Creating indexes for exported tables can
help maximize query performance.
Prerequisites: You are working in
Workbench running on a PC, are connected to a Supervisor station and have access to a relational database on your company’s network.
Perform the following steps:
- Navigate to , double-click on your RDB component and expand Histories.
The
Histories properties open.
- To configure the station to always create an index on export, change
Always Create Index For New Tables to true and click Save.The next time you export, the station creates an index on the exported table unless one already existed.