Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Wiki Markup
{scrollbar}

What

RdbmsExport.xml

Required

no

Description

Exports historical time series data to RDBMS

schema location

http://fews.wldelft.nl/schemas/version1.0/rdbmsExport.xsd

Entry in ModuleDescriptors

<moduleDescriptor id="RdbmsExport">
<description>Exports historical time series data to RDBMS</description>
<className>nl.wldelft.fews.system.plugin.rdbmsexport.RdbmsExport</className>
</moduleDescriptor>

...

When setting up an export configuration, one must consider the following:
The RdbmsExport functionality is designed from the idea of a complete export initially (for the configured data sets) and periodic exports henceforth of new and/or mutated data to keep the FEWS datastore and export database in sync.
Identifying new or mutated historical data can only be done within a period of 10 days from the System Time (ST); if the period of 10 days is exceeded a complete export is forced:

  • start < ST-10days => complete export
  • ST-10days < start <= ST => mutated and new data only

The exportTimeWindow will be applied if it is within the aforementioned 10 days period. Then it will limit the amount of data exported to be within the specified start and end.

...

Tables for storage of data in the RDBMS must be present before first execution of RDBMS Export module.
Proper priviledges must be assigned to the #user account by the database administrator to insert/update data in these tables as well as (execution) rights on the sequences and triggers in use.

Data model:

DDL scripts:

Notice that it may be required to increase some column sizes, like locations.description from the default 256 characters to e.g. 1024 characters to be able to store the complete string. If the size in the database is not large enough, the export will stop with an error (data truncation error).

...

One record in the TIMESERIEDATA table requires about 300 bytes. This means that 1.000.000 records take about 286 MB (300 * 1e6 million / 1024 /1024).

Additional remarks

  • The value of the timestep attribute (a string indicating the time step) in the Timeserie table will depend on the locale/language settings of the computer which is running the export module.