Hi, I'm Ask INFA!
What would you like to know?
ASK INFAPreview
Please to access Ask INFA.

Table of Contents

Search

  1. Preface
  2. Part 1: Introduction to Amazon Redshift connectors
  3. Part 2: Data Integration with Amazon Redshift V2 Connector
  4. Part 3: Data Integration with Amazon Redshift Connector

Amazon Redshift Connectors

Amazon Redshift Connectors

Optimize the staging performance for a mapping

Optimize the staging performance for a mapping

Data Integration, by default, creates a flat file locally in a temporary folder to stage the data before reading from and writing to Amazon Redshift. You can set Data Integration to optimize the staging performance.
If you do not set the optimization property, Data Integration performs staging without the optimized settings, which might impact the performance of the task.
Consider the following rules when you enable the optimization property:
  • If you run a mapping enabled for
    SQL ELT optimization
    , the mapping runs without
    SQL ELT optimization
    .
  • If the data contains timestamp data types with time zone, the job runs without staging the data in the local flat file.
  • If the mapping contains Oracle CDC as a source and Amazon Redshift as the target, the job runs without staging the data in the local flat file.
  • When you run a mapping to read multiline data from the source that contains CR or LF characters, the column data is split into multiple lines.
  • When you enable the optimization property for the Source or Lookup transformation, the session log displays the following message for both trnsformations:
    DTM Staging is enabled for connector for Source Instance.
    To distinguish logs related to the Lookup transformation, look for the logging code LKPDP in the session log.
    For example,
    LKPDP
    _1:READER_1_1> SDKS_38636 [2023-02-06 13:22:47.621] Plug-in #451600: DTM Staging is enabled for connector for Source Instance.
  • When an Amazon Redshift source table contains NULL values in columns of char data type, the mapping runs successfully. However, data mismatch might occur in the target.
  • When you use the ESCAPE=OFF unload command and run a mapping to read data from an Amazon Redshift source that contains delimiter characters, the data is truncated at the first occurrence of the delimiter.

Enabling Amazon Redshift Connector to optimize the staging performance

Perform the following steps to enable the Amazon Redshift V2 Connector to optimize the staging performance:
  1. In Administrator, click
    Runtime Environments
    .
  2. Edit the Secure Agent for which you want to set the property.
  3. In the
    System Configuration Details
    section, select the
    Service
    as
    Data Integration Server
    and the type as
    Tomcat
    .
  4. Set the value of the Tomcat property
    INFA_DTM_RDR_STAGING_ENABLED_CONNECTORS
    for the read operation,
    INFA_DTM_STAGING_ENABLED_CONNECTORS
    for the write operation, and
    INFA_DTM_LKP_STAGING_ENABLED_CONNECTORS
    for the cached lookup operation to the plugin ID of Amazon Redshift Connector.
    You can find the plugin ID in the manifest file located in the following directory:
    <Secure Agent installation directory>/downloads/<AmazonRedshift package>/CCIManifest
    The following image shows the optimization property that you set for staging data in the DTM of the Secure Agent:
    DTM staging property - read, write, lookup
When you run the mapping, the flat file is created in the following directory in your machine:
C:\Windows\Temp\AmazonRedshift\stage\<AmazonRedshift_Target.txt>
You can check the session logs to verify if the optimization property is enabled.

0 COMMENTS

We’d like to hear from you!